OLD | NEW |
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 #pragma once | 8 #pragma once |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 #endif | 113 #endif |
114 | 114 |
115 gfx::NativeView GetContentView(); | 115 gfx::NativeView GetContentView(); |
116 | 116 |
117 // content::WebContentsDelegate | 117 // content::WebContentsDelegate |
118 virtual void LoadingStateChanged(WebContents* source) OVERRIDE; | 118 virtual void LoadingStateChanged(WebContents* source) OVERRIDE; |
119 virtual void WebContentsCreated(WebContents* source_contents, | 119 virtual void WebContentsCreated(WebContents* source_contents, |
120 int64 source_frame_id, | 120 int64 source_frame_id, |
121 const GURL& target_url, | 121 const GURL& target_url, |
122 WebContents* new_contents) OVERRIDE; | 122 WebContents* new_contents) OVERRIDE; |
123 virtual void DidNavigateMainFramePostCommit(WebContents* tab) OVERRIDE; | 123 virtual void DidNavigateMainFramePostCommit( |
| 124 WebContents* web_contents) OVERRIDE; |
124 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator() OVERRIDE; | 125 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator() OVERRIDE; |
125 #if defined(OS_MACOSX) | 126 #if defined(OS_MACOSX) |
126 virtual void HandleKeyboardEvent( | 127 virtual void HandleKeyboardEvent( |
127 const NativeWebKeyboardEvent& event) OVERRIDE; | 128 const NativeWebKeyboardEvent& event) OVERRIDE; |
128 #endif | 129 #endif |
129 | 130 |
130 // content::WebContentsObserver | 131 // content::WebContentsObserver |
131 virtual void DidFinishLoad(int64 frame_id, | 132 virtual void DidFinishLoad(int64 frame_id, |
132 const GURL& validated_url, | 133 const GURL& validated_url, |
133 bool is_main_frame) OVERRIDE; | 134 bool is_main_frame) OVERRIDE; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 static std::vector<Shell*> windows_; | 184 static std::vector<Shell*> windows_; |
184 | 185 |
185 // True if the destructur of Shell should post a quit closure on the current | 186 // True if the destructur of Shell should post a quit closure on the current |
186 // message loop if the destructed Shell object was the last one. | 187 // message loop if the destructed Shell object was the last one. |
187 static bool quit_message_loop_; | 188 static bool quit_message_loop_; |
188 }; | 189 }; |
189 | 190 |
190 } // namespace content | 191 } // namespace content |
191 | 192 |
192 #endif // CONTENT_SHELL_SHELL_H_ | 193 #endif // CONTENT_SHELL_SHELL_H_ |
OLD | NEW |