| 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 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 void HandleKeyboardEvent(WebContents* source, | 152 void HandleKeyboardEvent(WebContents* source, |
| 153 const NativeWebKeyboardEvent& event) override; | 153 const NativeWebKeyboardEvent& event) override; |
| 154 #endif | 154 #endif |
| 155 bool AddMessageToConsole(WebContents* source, | 155 bool AddMessageToConsole(WebContents* source, |
| 156 int32_t level, | 156 int32_t level, |
| 157 const base::string16& message, | 157 const base::string16& message, |
| 158 int32_t line_no, | 158 int32_t line_no, |
| 159 const base::string16& source_id) override; | 159 const base::string16& source_id) override; |
| 160 void RendererUnresponsive(WebContents* source) override; | 160 void RendererUnresponsive(WebContents* source) override; |
| 161 void ActivateContents(WebContents* contents) override; | 161 void ActivateContents(WebContents* contents) override; |
| 162 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 162 bool HandleContextMenu(RenderFrameHost* render_frame_host, |
| 163 const content::ContextMenuParams& params) override; |
| 163 | 164 |
| 164 static gfx::Size GetShellDefaultSize(); | 165 static gfx::Size GetShellDefaultSize(); |
| 165 | 166 |
| 166 private: | 167 private: |
| 167 enum UIControl { | 168 enum UIControl { |
| 168 BACK_BUTTON, | 169 BACK_BUTTON, |
| 169 FORWARD_BUTTON, | 170 FORWARD_BUTTON, |
| 170 STOP_BUTTON | 171 STOP_BUTTON |
| 171 }; | 172 }; |
| 172 | 173 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 static base::Callback<void(Shell*)> shell_created_callback_; | 271 static base::Callback<void(Shell*)> shell_created_callback_; |
| 271 | 272 |
| 272 // True if the destructur of Shell should post a quit closure on the current | 273 // True if the destructur of Shell should post a quit closure on the current |
| 273 // message loop if the destructed Shell object was the last one. | 274 // message loop if the destructed Shell object was the last one. |
| 274 static bool quit_message_loop_; | 275 static bool quit_message_loop_; |
| 275 }; | 276 }; |
| 276 | 277 |
| 277 } // namespace content | 278 } // namespace content |
| 278 | 279 |
| 279 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 280 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |