| 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 #ifndef CONTENT_SHELL_SHELL_H_ | 4 #ifndef CONTENT_SHELL_SHELL_H_ |
| 5 #define CONTENT_SHELL_SHELL_H_ | 5 #define CONTENT_SHELL_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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 virtual void HandleKeyboardEvent( | 132 virtual void HandleKeyboardEvent( |
| 133 WebContents* source, | 133 WebContents* source, |
| 134 const NativeWebKeyboardEvent& event) OVERRIDE; | 134 const NativeWebKeyboardEvent& event) OVERRIDE; |
| 135 #endif | 135 #endif |
| 136 virtual bool AddMessageToConsole(WebContents* source, | 136 virtual bool AddMessageToConsole(WebContents* source, |
| 137 int32 level, | 137 int32 level, |
| 138 const string16& message, | 138 const string16& message, |
| 139 int32 line_no, | 139 int32 line_no, |
| 140 const string16& source_id) OVERRIDE; | 140 const string16& source_id) OVERRIDE; |
| 141 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; | 141 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; |
| 142 virtual void ActivateContents(WebContents* contents) OVERRIDE; |
| 143 virtual void DeactivateContents(WebContents* contents) OVERRIDE; |
| 142 | 144 |
| 143 private: | 145 private: |
| 144 enum UIControl { | 146 enum UIControl { |
| 145 BACK_BUTTON, | 147 BACK_BUTTON, |
| 146 FORWARD_BUTTON, | 148 FORWARD_BUTTON, |
| 147 STOP_BUTTON | 149 STOP_BUTTON |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 explicit Shell(WebContents* web_contents); | 152 explicit Shell(WebContents* web_contents); |
| 151 | 153 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 static base::Callback<void(Shell*)> shell_created_callback_; | 259 static base::Callback<void(Shell*)> shell_created_callback_; |
| 258 | 260 |
| 259 // True if the destructur of Shell should post a quit closure on the current | 261 // True if the destructur of Shell should post a quit closure on the current |
| 260 // message loop if the destructed Shell object was the last one. | 262 // message loop if the destructed Shell object was the last one. |
| 261 static bool quit_message_loop_; | 263 static bool quit_message_loop_; |
| 262 }; | 264 }; |
| 263 | 265 |
| 264 } // namespace content | 266 } // namespace content |
| 265 | 267 |
| 266 #endif // CONTENT_SHELL_SHELL_H_ | 268 #endif // CONTENT_SHELL_SHELL_H_ |
| OLD | NEW |