| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 void HandleKeyboardEvent(WebContents* source, | 143 void HandleKeyboardEvent(WebContents* source, |
| 144 const NativeWebKeyboardEvent& event) override; | 144 const NativeWebKeyboardEvent& event) override; |
| 145 #endif | 145 #endif |
| 146 bool AddMessageToConsole(WebContents* source, | 146 bool AddMessageToConsole(WebContents* source, |
| 147 int32 level, | 147 int32 level, |
| 148 const base::string16& message, | 148 const base::string16& message, |
| 149 int32 line_no, | 149 int32 line_no, |
| 150 const base::string16& source_id) override; | 150 const base::string16& source_id) override; |
| 151 void RendererUnresponsive(WebContents* source) override; | 151 void RendererUnresponsive(WebContents* source) override; |
| 152 void ActivateContents(WebContents* contents) override; | 152 void ActivateContents(WebContents* contents) override; |
| 153 void DeactivateContents(WebContents* contents) override; | |
| 154 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 153 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| 155 | 154 |
| 156 static gfx::Size GetShellDefaultSize(); | 155 static gfx::Size GetShellDefaultSize(); |
| 157 | 156 |
| 158 private: | 157 private: |
| 159 enum UIControl { | 158 enum UIControl { |
| 160 BACK_BUTTON, | 159 BACK_BUTTON, |
| 161 FORWARD_BUTTON, | 160 FORWARD_BUTTON, |
| 162 STOP_BUTTON | 161 STOP_BUTTON |
| 163 }; | 162 }; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 static base::Callback<void(Shell*)> shell_created_callback_; | 253 static base::Callback<void(Shell*)> shell_created_callback_; |
| 255 | 254 |
| 256 // True if the destructur of Shell should post a quit closure on the current | 255 // True if the destructur of Shell should post a quit closure on the current |
| 257 // message loop if the destructed Shell object was the last one. | 256 // message loop if the destructed Shell object was the last one. |
| 258 static bool quit_message_loop_; | 257 static bool quit_message_loop_; |
| 259 }; | 258 }; |
| 260 | 259 |
| 261 } // namespace content | 260 } // namespace content |
| 262 | 261 |
| 263 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 262 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |