| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 virtual void ContentsZoomChange(bool zoom_in); | 110 virtual void ContentsZoomChange(bool zoom_in); |
| 111 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 111 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
| 112 virtual void ForwardMessageToExternalHost(const std::string& message, | 112 virtual void ForwardMessageToExternalHost(const std::string& message, |
| 113 const std::string& origin, | 113 const std::string& origin, |
| 114 const std::string& target); | 114 const std::string& target); |
| 115 virtual bool IsExternalTabContainer() const { | 115 virtual bool IsExternalTabContainer() const { |
| 116 return true; | 116 return true; |
| 117 }; | 117 }; |
| 118 virtual gfx::NativeWindow GetFrameNativeWindow(); | 118 virtual gfx::NativeWindow GetFrameNativeWindow(); |
| 119 | 119 |
| 120 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 120 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 121 bool* is_keyboard_shortcut); |
| 122 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 121 | 123 |
| 122 virtual bool TakeFocus(bool reverse); | 124 virtual bool TakeFocus(bool reverse); |
| 123 | 125 |
| 124 virtual bool CanDownload(int request_id); | 126 virtual bool CanDownload(int request_id); |
| 125 | 127 |
| 126 virtual bool OnGoToEntryOffset(int offset); | 128 virtual bool OnGoToEntryOffset(int offset); |
| 127 | 129 |
| 128 virtual void ShowPageInfo(Profile* profile, | 130 virtual void ShowPageInfo(Profile* profile, |
| 129 const GURL& url, | 131 const GURL& url, |
| 130 const NavigationEntry::SSLStatus& ssl, | 132 const NavigationEntry::SSLStatus& ssl, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // bound by its lifetime. | 235 // bound by its lifetime. |
| 234 ScopedRunnableMethodFactory<ExternalTabContainer> external_method_factory_; | 236 ScopedRunnableMethodFactory<ExternalTabContainer> external_method_factory_; |
| 235 | 237 |
| 236 // The URL request context to be used for this tab. Can be NULL. | 238 // The URL request context to be used for this tab. Can be NULL. |
| 237 scoped_refptr<ChromeURLRequestContextGetter> request_context_; | 239 scoped_refptr<ChromeURLRequestContextGetter> request_context_; |
| 238 | 240 |
| 239 DISALLOW_COPY_AND_ASSIGN(ExternalTabContainer); | 241 DISALLOW_COPY_AND_ASSIGN(ExternalTabContainer); |
| 240 }; | 242 }; |
| 241 | 243 |
| 242 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_ | 244 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_H_ |
| OLD | NEW |