Home | History | Annotate | Download | only in browser

Lines Matching full:shell

5 #include "content/shell/browser/shell.h"
23 #include "content/shell/browser/notify_done_forwarder.h"
24 #include "content/shell/browser/shell_browser_main_parts.h"
25 #include "content/shell/browser/shell_content_browser_client.h"
26 #include "content/shell/browser/shell_devtools_frontend.h"
27 #include "content/shell/browser/shell_javascript_dialog_manager.h"
28 #include "content/shell/browser/webkit_test_controller.h"
29 #include "content/shell/common/shell_messages.h"
30 #include "content/shell/common/shell_switches.h"
33 #include "content/shell/browser/shell_aura.h"
38 const int Shell::kDefaultTestWindowWidthDip = 800;
39 const int Shell::kDefaultTestWindowHeightDip = 600;
41 std::vector<Shell*> Shell::windows_;
42 base::Callback<void(Shell*)> Shell::shell_created_callback_;
44 bool Shell::quit_message_loop_ = true;
46 class Shell::DevToolsWebContentsObserver : public WebContentsObserver {
48 DevToolsWebContentsObserver(Shell* shell, WebContents* web_contents)
50 shell_(shell) {
59 Shell* shell_;
64 Shell::Shell(WebContents* web_contents)
85 Shell::~Shell() {
100 Shell* Shell::CreateShell(WebContents* web_contents,
102 Shell* shell = new Shell(web_contents);
103 shell->PlatformCreateWindow(initial_size.width(), initial_size.height());
105 shell->web_contents_.reset(web_contents);
106 web_contents->SetDelegate(shell);
108 shell->PlatformSetContents();
110 shell->PlatformResizeSubViews();
117 return shell;
120 void Shell::CloseAllWindows() {
123 std::vector<Shell*> open_windows(windows_);
130 void Shell::SetShellCreatedCallback(
131 base::Callback<void(Shell*)> shell_created_callback) {
136 Shell* Shell::FromRenderViewHost(RenderViewHost* rvh) {
147 void Shell::Initialize() {
152 gfx::Size Shell::AdjustWindowSize(const gfx::Size& initial_size) {
158 Shell* Shell::CreateNewWindow(BrowserContext* browser_context,
167 Shell* shell = CreateShell(web_contents, create_params.initial_size);
169 shell->LoadURL(url);
170 return shell;
173 void Shell::LoadURL(const GURL& url) {
177 void Shell::LoadURLForFrame(const GURL& url, const std::string& frame_name) {
186 void Shell::AddNewContents(WebContents* source,
197 void Shell::GoBackOrForward(int offset) {
202 void Shell::Reload() {
207 void Shell::Stop() {
212 void Shell::UpdateNavigationControls() {
221 void Shell::ShowDevTools() {
231 void Shell::CloseDevTools() {
239 gfx::NativeView Shell::GetContentView() {
245 WebContents* Shell::OpenURLFromTab(WebContents* source,
270 void Shell::LoadingStateChanged(WebContents* source) {
275 void Shell::ToggleFullscreenModeForTab(WebContents* web_contents,
288 bool Shell::IsFullscreenForTabOrPending(const WebContents* web_contents) const {
296 void Shell::RequestToLockMouse(WebContents* web_contents,
302 void Shell::CloseContents(WebContents* source) {
306 bool Shell::CanOverscrollContent() const {
314 void Shell::DidNavigateMainFramePostCommit(WebContents* web_contents) {
318 JavaScriptDialogManager* Shell::GetJavaScriptDialogManager() {
324 bool Shell::AddMessageToConsole(WebContents* source,
332 void Shell::RendererUnresponsive(WebContents* source) {
338 void Shell::ActivateContents(WebContents* contents) {
342 void Shell::DeactivateContents(WebContents* contents) {
346 void Shell::WorkerCrashed(WebContents* source) {
352 void Shell::TitleWasSet(NavigationEntry* entry, bool explicit_set) {
357 void Shell::OnDevToolsWebContentsDestroyed() {