Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: content/shell/shell.h

Issue 10809016: Move content_shell and content_browsertests code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/android/shell_library_loader.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_SHELL_H_ 5 #ifndef CONTENT_SHELL_SHELL_H_
6 #define CONTENT_SHELL_SHELL_H_ 6 #define CONTENT_SHELL_SHELL_H_
7 7
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void Stop(); 48 void Stop();
49 void UpdateNavigationControls(); 49 void UpdateNavigationControls();
50 void Close(); 50 void Close();
51 51
52 // Do one time initialization at application startup. 52 // Do one time initialization at application startup.
53 static void PlatformInitialize(); 53 static void PlatformInitialize();
54 54
55 // This is called indirectly by the modules that need access resources. 55 // This is called indirectly by the modules that need access resources.
56 static base::StringPiece PlatformResourceProvider(int key); 56 static base::StringPiece PlatformResourceProvider(int key);
57 57
58 static Shell* CreateNewWindow(content::BrowserContext* browser_context, 58 static Shell* CreateNewWindow(BrowserContext* browser_context,
59 const GURL& url, 59 const GURL& url,
60 SiteInstance* site_instance, 60 SiteInstance* site_instance,
61 int routing_id, 61 int routing_id,
62 WebContents* base_web_contents); 62 WebContents* base_web_contents);
63 63
64 // Returns the Shell object corresponding to the given RenderViewHost. 64 // Returns the Shell object corresponding to the given RenderViewHost.
65 static Shell* FromRenderViewHost(RenderViewHost* rvh); 65 static Shell* FromRenderViewHost(RenderViewHost* rvh);
66 66
67 // Returns the currently open windows. 67 // Returns the currently open windows.
68 static std::vector<Shell*>& windows() { return windows_; } 68 static std::vector<Shell*>& windows() { return windows_; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Set the title of shell window 115 // Set the title of shell window
116 void PlatformSetTitle(const string16& title); 116 void PlatformSetTitle(const string16& title);
117 117
118 #if (defined(OS_WIN) && !defined(USE_AURA)) || defined(TOOLKIT_GTK) 118 #if (defined(OS_WIN) && !defined(USE_AURA)) || defined(TOOLKIT_GTK)
119 // Resizes the main window to the given dimensions. 119 // Resizes the main window to the given dimensions.
120 void SizeTo(int width, int height); 120 void SizeTo(int width, int height);
121 #endif 121 #endif
122 122
123 gfx::NativeView GetContentView(); 123 gfx::NativeView GetContentView();
124 124
125 // content::WebContentsDelegate 125 // WebContentsDelegate
126 virtual void LoadingStateChanged(WebContents* source) OVERRIDE; 126 virtual void LoadingStateChanged(WebContents* source) OVERRIDE;
127 #if defined(OS_ANDROID) 127 #if defined(OS_ANDROID)
128 virtual void LoadProgressChanged(double progress) OVERRIDE; 128 virtual void LoadProgressChanged(double progress) OVERRIDE;
129 #endif 129 #endif
130 virtual void WebContentsCreated(WebContents* source_contents, 130 virtual void WebContentsCreated(WebContents* source_contents,
131 int64 source_frame_id, 131 int64 source_frame_id,
132 const GURL& target_url, 132 const GURL& target_url,
133 WebContents* new_contents) OVERRIDE; 133 WebContents* new_contents) OVERRIDE;
134 virtual void DidNavigateMainFramePostCommit( 134 virtual void DidNavigateMainFramePostCommit(
135 WebContents* web_contents) OVERRIDE; 135 WebContents* web_contents) OVERRIDE;
136 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator() OVERRIDE; 136 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator() OVERRIDE;
137 #if defined(OS_MACOSX) 137 #if defined(OS_MACOSX)
138 virtual void HandleKeyboardEvent( 138 virtual void HandleKeyboardEvent(
139 const NativeWebKeyboardEvent& event) OVERRIDE; 139 const NativeWebKeyboardEvent& event) OVERRIDE;
140 #endif 140 #endif
141 virtual bool AddMessageToConsole(WebContents* source, 141 virtual bool AddMessageToConsole(WebContents* source,
142 int32 level, 142 int32 level,
143 const string16& message, 143 const string16& message,
144 int32 line_no, 144 int32 line_no,
145 const string16& source_id) OVERRIDE; 145 const string16& source_id) OVERRIDE;
146 146
147 // content::NotificationObserver 147 // NotificationObserver
148 virtual void Observe(int type, 148 virtual void Observe(int type,
149 const NotificationSource& source, 149 const NotificationSource& source,
150 const NotificationDetails& details) OVERRIDE; 150 const NotificationDetails& details) OVERRIDE;
151 151
152 #if defined(OS_WIN) && !defined(USE_AURA) 152 #if defined(OS_WIN) && !defined(USE_AURA)
153 static ATOM RegisterWindowClass(); 153 static ATOM RegisterWindowClass();
154 static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 154 static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
155 static LRESULT CALLBACK EditWndProc(HWND, UINT, WPARAM, LPARAM); 155 static LRESULT CALLBACK EditWndProc(HWND, UINT, WPARAM, LPARAM);
156 #elif defined(TOOLKIT_GTK) 156 #elif defined(TOOLKIT_GTK)
157 CHROMEGTK_CALLBACK_0(Shell, void, OnBackButtonClicked); 157 CHROMEGTK_CALLBACK_0(Shell, void, OnBackButtonClicked);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 static std::vector<Shell*> windows_; 202 static std::vector<Shell*> windows_;
203 203
204 // True if the destructur of Shell should post a quit closure on the current 204 // True if the destructur of Shell should post a quit closure on the current
205 // message loop if the destructed Shell object was the last one. 205 // message loop if the destructed Shell object was the last one.
206 static bool quit_message_loop_; 206 static bool quit_message_loop_;
207 }; 207 };
208 208
209 } // namespace content 209 } // namespace content
210 210
211 #endif // CONTENT_SHELL_SHELL_H_ 211 #endif // CONTENT_SHELL_SHELL_H_
OLDNEW
« no previous file with comments | « content/shell/android/shell_library_loader.cc ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698