| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual void NavigationStateChanged(const TabContents* source, | 129 virtual void NavigationStateChanged(const TabContents* source, |
| 130 unsigned changed_flags); | 130 unsigned changed_flags); |
| 131 virtual void AddNewContents(TabContents* source, | 131 virtual void AddNewContents(TabContents* source, |
| 132 TabContents* new_contents, | 132 TabContents* new_contents, |
| 133 WindowOpenDisposition disposition, | 133 WindowOpenDisposition disposition, |
| 134 const gfx::Rect& initial_pos, | 134 const gfx::Rect& initial_pos, |
| 135 bool user_gesture); | 135 bool user_gesture); |
| 136 virtual void CloseContents(TabContents* source); | 136 virtual void CloseContents(TabContents* source); |
| 137 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 137 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
| 138 virtual bool IsPopup(const TabContents* source) const; | 138 virtual bool IsPopup(const TabContents* source) const; |
| 139 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 139 virtual void UpdateTargetURL(TabContents* source, int32 page_id, |
| 140 const GURL& url); |
| 140 virtual void ContentsZoomChange(bool zoom_in); | 141 virtual void ContentsZoomChange(bool zoom_in); |
| 141 virtual gfx::NativeWindow GetFrameNativeWindow(); | 142 virtual gfx::NativeWindow GetFrameNativeWindow(); |
| 142 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 143 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 143 bool* is_keyboard_shortcut); | 144 bool* is_keyboard_shortcut); |
| 144 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 145 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 145 virtual bool TakeFocus(bool reverse); | 146 virtual bool TakeFocus(bool reverse); |
| 146 virtual bool CanDownload(TabContents* source, int request_id); | 147 virtual bool CanDownload(TabContents* source, int request_id); |
| 147 virtual bool OnGoToEntryOffset(int offset); | 148 virtual bool OnGoToEntryOffset(int offset); |
| 148 virtual void ShowPageInfo(Profile* profile, | 149 virtual void ShowPageInfo(Profile* profile, |
| 149 const GURL& url, | 150 const GURL& url, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 175 const string16& action, | 176 const string16& action, |
| 176 const string16& type, | 177 const string16& type, |
| 177 const string16& data, | 178 const string16& data, |
| 178 int intent_id); | 179 int intent_id); |
| 179 virtual void FindReply(TabContents* tab, | 180 virtual void FindReply(TabContents* tab, |
| 180 int request_id, | 181 int request_id, |
| 181 int number_of_matches, | 182 int number_of_matches, |
| 182 const gfx::Rect& selection_rect, | 183 const gfx::Rect& selection_rect, |
| 183 int active_match_ordinal, | 184 int active_match_ordinal, |
| 184 bool final_update); | 185 bool final_update); |
| 186 virtual void CrashedPlugin(TabContents* tab, |
| 187 const FilePath& plugin_path); |
| 188 virtual void DidStartProvisionalLoadForFrame(TabContents* tab, |
| 189 int64 frame_id, |
| 190 bool is_main_frame, |
| 191 bool has_opener_set, |
| 192 const GURL& url); |
| 185 | 193 |
| 186 void RegisterRenderViewHost(RenderViewHost* render_view_host); | 194 void RegisterRenderViewHost(RenderViewHost* render_view_host); |
| 187 void UnregisterRenderViewHost(RenderViewHost* render_view_host); | 195 void UnregisterRenderViewHost(RenderViewHost* render_view_host); |
| 188 | 196 |
| 189 // Overridden from TabContentsObserver: | 197 // Overridden from TabContentsObserver: |
| 190 // IPC::Channel::Listener implementation. | 198 // IPC::Channel::Listener implementation. |
| 191 virtual bool OnMessageReceived(const IPC::Message& message); | 199 virtual bool OnMessageReceived(const IPC::Message& message); |
| 192 | 200 |
| 193 // Message handlers | 201 // Message handlers |
| 194 void OnForwardMessageToExternalHost(const std::string& message, | 202 void OnForwardMessageToExternalHost(const std::string& message, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 389 |
| 382 virtual void NavigationStateChanged(const TabContents* source, | 390 virtual void NavigationStateChanged(const TabContents* source, |
| 383 unsigned changed_flags) { | 391 unsigned changed_flags) { |
| 384 NOTREACHED(); | 392 NOTREACHED(); |
| 385 } | 393 } |
| 386 | 394 |
| 387 virtual void CloseContents(TabContents* source) { | 395 virtual void CloseContents(TabContents* source) { |
| 388 NOTREACHED(); | 396 NOTREACHED(); |
| 389 } | 397 } |
| 390 | 398 |
| 391 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { | 399 virtual void UpdateTargetURL(TabContents* source, int32 page_id, |
| 400 const GURL& url) { |
| 392 NOTREACHED(); | 401 NOTREACHED(); |
| 393 } | 402 } |
| 394 | 403 |
| 395 void ForwardMessageToExternalHost(const std::string& message, | 404 void ForwardMessageToExternalHost(const std::string& message, |
| 396 const std::string& origin, | 405 const std::string& origin, |
| 397 const std::string& target) { | 406 const std::string& target) { |
| 398 NOTREACHED(); | 407 NOTREACHED(); |
| 399 } | 408 } |
| 400 | 409 |
| 401 virtual bool TakeFocus(bool reverse) { | 410 virtual bool TakeFocus(bool reverse) { |
| 402 NOTREACHED(); | 411 NOTREACHED(); |
| 403 return false; | 412 return false; |
| 404 } | 413 } |
| 405 | 414 |
| 406 virtual bool HandleContextMenu(const ContextMenuParams& params) { | 415 virtual bool HandleContextMenu(const ContextMenuParams& params) { |
| 407 NOTREACHED(); | 416 NOTREACHED(); |
| 408 return false; | 417 return false; |
| 409 } | 418 } |
| 410 | 419 |
| 411 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 420 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
| 412 bool* proceed_to_fire_unload) { | 421 bool* proceed_to_fire_unload) { |
| 413 NOTREACHED(); | 422 NOTREACHED(); |
| 414 } | 423 } |
| 415 }; | 424 }; |
| 416 | 425 |
| 417 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 426 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |