| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_ | 4 #ifndef CONTENT_SHELL_BROWSER_SHELL_H_ |
| 5 #define CONTENT_SHELL_BROWSER_SHELL_H_ | 5 #define CONTENT_SHELL_BROWSER_SHELL_H_ |
| 6 | 6 |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Registers the Android Java to native methods. | 108 // Registers the Android Java to native methods. |
| 109 static bool Register(JNIEnv* env); | 109 static bool Register(JNIEnv* env); |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 // WebContentsDelegate | 112 // WebContentsDelegate |
| 113 WebContents* OpenURLFromTab(WebContents* source, | 113 WebContents* OpenURLFromTab(WebContents* source, |
| 114 const OpenURLParams& params) override; | 114 const OpenURLParams& params) override; |
| 115 void AddNewContents(WebContents* source, | 115 void AddNewContents(WebContents* source, |
| 116 WebContents* new_contents, | 116 WebContents* new_contents, |
| 117 WindowOpenDisposition disposition, | 117 WindowOpenDisposition disposition, |
| 118 const gfx::Rect& initial_pos, | 118 const gfx::Rect& initial_rect, |
| 119 bool user_gesture, | 119 bool user_gesture, |
| 120 bool* was_blocked) override; | 120 bool* was_blocked) override; |
| 121 void LoadingStateChanged(WebContents* source, | 121 void LoadingStateChanged(WebContents* source, |
| 122 bool to_different_document) override; | 122 bool to_different_document) override; |
| 123 #if defined(OS_ANDROID) | 123 #if defined(OS_ANDROID) |
| 124 virtual void LoadProgressChanged(WebContents* source, | 124 virtual void LoadProgressChanged(WebContents* source, |
| 125 double progress) override; | 125 double progress) override; |
| 126 #endif | 126 #endif |
| 127 void EnterFullscreenModeForTab(WebContents* web_contents, | 127 void EnterFullscreenModeForTab(WebContents* web_contents, |
| 128 const GURL& origin) override; | 128 const GURL& origin) override; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 static base::Callback<void(Shell*)> shell_created_callback_; | 255 static base::Callback<void(Shell*)> shell_created_callback_; |
| 256 | 256 |
| 257 // True if the destructur of Shell should post a quit closure on the current | 257 // True if the destructur of Shell should post a quit closure on the current |
| 258 // message loop if the destructed Shell object was the last one. | 258 // message loop if the destructed Shell object was the last one. |
| 259 static bool quit_message_loop_; | 259 static bool quit_message_loop_; |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 } // namespace content | 262 } // namespace content |
| 263 | 263 |
| 264 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 264 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |