| 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 | 8 |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/public/browser/web_contents_delegate.h" | 15 #include "content/public/browser/web_contents_delegate.h" |
| 16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
| 17 #include "ipc/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
| 18 #include "ui/gfx/geometry/size.h" | 18 #include "ui/gfx/geometry/size.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| 20 | 20 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 WebContents* source) override; | 135 WebContents* source) override; |
| 136 scoped_ptr<BluetoothChooser> RunBluetoothChooser( | 136 scoped_ptr<BluetoothChooser> RunBluetoothChooser( |
| 137 WebContents* web_contents, | 137 WebContents* web_contents, |
| 138 const BluetoothChooser::EventHandler& event_handler, | 138 const BluetoothChooser::EventHandler& event_handler, |
| 139 const GURL& origin) override; | 139 const GURL& origin) override; |
| 140 #if defined(OS_MACOSX) | 140 #if defined(OS_MACOSX) |
| 141 void HandleKeyboardEvent(WebContents* source, | 141 void HandleKeyboardEvent(WebContents* source, |
| 142 const NativeWebKeyboardEvent& event) override; | 142 const NativeWebKeyboardEvent& event) override; |
| 143 #endif | 143 #endif |
| 144 bool AddMessageToConsole(WebContents* source, | 144 bool AddMessageToConsole(WebContents* source, |
| 145 int32 level, | 145 int32_t level, |
| 146 const base::string16& message, | 146 const base::string16& message, |
| 147 int32 line_no, | 147 int32_t line_no, |
| 148 const base::string16& source_id) override; | 148 const base::string16& source_id) override; |
| 149 void RendererUnresponsive(WebContents* source) override; | 149 void RendererUnresponsive(WebContents* source) override; |
| 150 void ActivateContents(WebContents* contents) override; | 150 void ActivateContents(WebContents* contents) override; |
| 151 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 151 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| 152 | 152 |
| 153 static gfx::Size GetShellDefaultSize(); | 153 static gfx::Size GetShellDefaultSize(); |
| 154 | 154 |
| 155 private: | 155 private: |
| 156 enum UIControl { | 156 enum UIControl { |
| 157 BACK_BUTTON, | 157 BACK_BUTTON, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 static base::Callback<void(Shell*)> shell_created_callback_; | 253 static base::Callback<void(Shell*)> shell_created_callback_; |
| 254 | 254 |
| 255 // 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 |
| 256 // message loop if the destructed Shell object was the last one. | 256 // message loop if the destructed Shell object was the last one. |
| 257 static bool quit_message_loop_; | 257 static bool quit_message_loop_; |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 } // namespace content | 260 } // namespace content |
| 261 | 261 |
| 262 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ | 262 #endif // CONTENT_SHELL_BROWSER_SHELL_H_ |
| OLD | NEW |