| 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 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool supports_full_tab_mode) OVERRIDE; | 83 bool supports_full_tab_mode) OVERRIDE; |
| 84 virtual void Uninitialize() OVERRIDE; | 84 virtual void Uninitialize() OVERRIDE; |
| 85 virtual bool Reinitialize(AutomationProvider* automation_provider, | 85 virtual bool Reinitialize(AutomationProvider* automation_provider, |
| 86 AutomationResourceMessageFilter* filter, | 86 AutomationResourceMessageFilter* filter, |
| 87 gfx::NativeWindow parent_window) OVERRIDE; | 87 gfx::NativeWindow parent_window) OVERRIDE; |
| 88 virtual content::WebContents* GetWebContents() const OVERRIDE; | 88 virtual content::WebContents* GetWebContents() const OVERRIDE; |
| 89 virtual TabContents* GetTabContents() OVERRIDE; | 89 virtual TabContents* GetTabContents() OVERRIDE; |
| 90 virtual gfx::NativeView GetExternalTabNativeView() const OVERRIDE; | 90 virtual gfx::NativeView GetExternalTabNativeView() const OVERRIDE; |
| 91 virtual void SetTabHandle(int handle) OVERRIDE; | 91 virtual void SetTabHandle(int handle) OVERRIDE; |
| 92 virtual int GetTabHandle() const OVERRIDE; | 92 virtual int GetTabHandle() const OVERRIDE; |
| 93 virtual bool ExecuteContextMenuCommand(int command) OVERRIDE; |
| 93 virtual void RunUnloadHandlers(IPC::Message* reply_message) OVERRIDE; | 94 virtual void RunUnloadHandlers(IPC::Message* reply_message) OVERRIDE; |
| 94 virtual void ProcessUnhandledAccelerator(const MSG& msg) OVERRIDE; | 95 virtual void ProcessUnhandledAccelerator(const MSG& msg) OVERRIDE; |
| 95 virtual void FocusThroughTabTraversal(bool reverse, | 96 virtual void FocusThroughTabTraversal(bool reverse, |
| 96 bool restore_focus_to_view) OVERRIDE; | 97 bool restore_focus_to_view) OVERRIDE; |
| 97 | 98 |
| 98 // A helper method that tests whether the given window is an | 99 // A helper method that tests whether the given window is an |
| 99 // ExternalTabContainerWin window. | 100 // ExternalTabContainerWin window. |
| 100 static bool IsExternalTabContainer(HWND window); | 101 static bool IsExternalTabContainer(HWND window); |
| 101 | 102 |
| 102 // A helper function that returns a pointer to the ExternalTabContainerWin | 103 // A helper function that returns a pointer to the ExternalTabContainerWin |
| (...skipping 15 matching lines...) Expand all Loading... |
| 118 bool user_gesture, | 119 bool user_gesture, |
| 119 bool* was_blocked) OVERRIDE; | 120 bool* was_blocked) OVERRIDE; |
| 120 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 121 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 121 virtual void MoveContents(content::WebContents* source, | 122 virtual void MoveContents(content::WebContents* source, |
| 122 const gfx::Rect& pos) OVERRIDE; | 123 const gfx::Rect& pos) OVERRIDE; |
| 123 virtual bool IsPopupOrPanel( | 124 virtual bool IsPopupOrPanel( |
| 124 const content::WebContents* source) const OVERRIDE; | 125 const content::WebContents* source) const OVERRIDE; |
| 125 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, | 126 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, |
| 126 const GURL& url) OVERRIDE; | 127 const GURL& url) OVERRIDE; |
| 127 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; | 128 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; |
| 128 virtual gfx::NativeWindow GetFrameNativeWindow() OVERRIDE; | |
| 129 virtual void WebContentsCreated(content::WebContents* source_contents, | 129 virtual void WebContentsCreated(content::WebContents* source_contents, |
| 130 int64 source_frame_id, | 130 int64 source_frame_id, |
| 131 const GURL& target_url, | 131 const GURL& target_url, |
| 132 content::WebContents* new_contents) OVERRIDE; | 132 content::WebContents* new_contents) OVERRIDE; |
| 133 virtual bool PreHandleKeyboardEvent( | 133 virtual bool PreHandleKeyboardEvent( |
| 134 content::WebContents* source, | 134 content::WebContents* source, |
| 135 const content::NativeWebKeyboardEvent& event, | 135 const content::NativeWebKeyboardEvent& event, |
| 136 bool* is_keyboard_shortcut) OVERRIDE; | 136 bool* is_keyboard_shortcut) OVERRIDE; |
| 137 virtual void HandleKeyboardEvent( | 137 virtual void HandleKeyboardEvent( |
| 138 content::WebContents* source, | 138 content::WebContents* source, |
| 139 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 139 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 140 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE; | 140 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE; |
| 141 virtual bool CanDownload(content::RenderViewHost* render_view_host, | 141 virtual bool CanDownload(content::RenderViewHost* render_view_host, |
| 142 int request_id, | 142 int request_id, |
| 143 const std::string& request_method) OVERRIDE; | 143 const std::string& request_method) OVERRIDE; |
| 144 virtual bool OnGoToEntryOffset(int offset) OVERRIDE; | 144 virtual bool OnGoToEntryOffset(int offset) OVERRIDE; |
| 145 virtual bool HandleContextMenu( | 145 virtual bool HandleContextMenu( |
| 146 const content::ContextMenuParams& params) OVERRIDE; | 146 const content::ContextMenuParams& params) OVERRIDE; |
| 147 virtual bool ExecuteContextMenuCommand(int command) OVERRIDE; | |
| 148 virtual void BeforeUnloadFired(content::WebContents* tab, | 147 virtual void BeforeUnloadFired(content::WebContents* tab, |
| 149 bool proceed, | 148 bool proceed, |
| 150 bool* proceed_to_fire_unload) OVERRIDE; | 149 bool* proceed_to_fire_unload) OVERRIDE; |
| 151 virtual content::JavaScriptDialogCreator* | 150 virtual content::JavaScriptDialogCreator* |
| 152 GetJavaScriptDialogCreator() OVERRIDE; | 151 GetJavaScriptDialogCreator() OVERRIDE; |
| 153 virtual void ShowRepostFormWarningDialog( | 152 virtual void ShowRepostFormWarningDialog( |
| 154 content::WebContents* source) OVERRIDE; | 153 content::WebContents* source) OVERRIDE; |
| 155 virtual void RunFileChooser( | 154 virtual void RunFileChooser( |
| 156 content::WebContents* tab, | 155 content::WebContents* tab, |
| 157 const content::FileChooserParams& params) OVERRIDE; | 156 const content::FileChooserParams& params) OVERRIDE; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 return false; | 402 return false; |
| 404 } | 403 } |
| 405 | 404 |
| 406 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, | 405 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, |
| 407 bool* proceed_to_fire_unload) { | 406 bool* proceed_to_fire_unload) { |
| 408 NOTREACHED(); | 407 NOTREACHED(); |
| 409 } | 408 } |
| 410 }; | 409 }; |
| 411 | 410 |
| 412 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ | 411 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |