| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 bool closed_by_user_gesture() const { return closed_by_user_gesture_; } | 673 bool closed_by_user_gesture() const { return closed_by_user_gesture_; } |
| 674 | 674 |
| 675 // JavaScriptMessageBoxClient ------------------------------------------------ | 675 // JavaScriptMessageBoxClient ------------------------------------------------ |
| 676 virtual std::wstring GetMessageBoxTitle(const GURL& frame_url, | 676 virtual std::wstring GetMessageBoxTitle(const GURL& frame_url, |
| 677 bool is_alert); | 677 bool is_alert); |
| 678 virtual gfx::NativeWindow GetMessageBoxRootWindow(); | 678 virtual gfx::NativeWindow GetMessageBoxRootWindow(); |
| 679 virtual void OnMessageBoxClosed(IPC::Message* reply_msg, | 679 virtual void OnMessageBoxClosed(IPC::Message* reply_msg, |
| 680 bool success, | 680 bool success, |
| 681 const std::wstring& prompt); | 681 const std::wstring& prompt); |
| 682 virtual void SetSuppressMessageBoxes(bool suppress_message_boxes); | 682 virtual void SetSuppressMessageBoxes(bool suppress_message_boxes); |
| 683 virtual TabContents* AsTabContents() { return this; } | 683 virtual TabContents* AsTabContents(); |
| 684 virtual ExtensionHost* AsExtensionHost() { return NULL; } | 684 virtual ExtensionHost* AsExtensionHost(); |
| 685 | 685 |
| 686 // The BookmarkDragDelegate is used to forward bookmark drag and drop events | 686 // The BookmarkDragDelegate is used to forward bookmark drag and drop events |
| 687 // to extensions. | 687 // to extensions. |
| 688 virtual RenderViewHostDelegate::BookmarkDrag* GetBookmarkDragDelegate(); | 688 virtual RenderViewHostDelegate::BookmarkDrag* GetBookmarkDragDelegate(); |
| 689 | 689 |
| 690 // It is up to callers to call SetBookmarkDragDelegate(NULL) when | 690 // It is up to callers to call SetBookmarkDragDelegate(NULL) when |
| 691 // |bookmark_drag| is deleted since this class does not take ownership of | 691 // |bookmark_drag| is deleted since this class does not take ownership of |
| 692 // |bookmark_drag|. | 692 // |bookmark_drag|. |
| 693 virtual void SetBookmarkDragDelegate( | 693 virtual void SetBookmarkDragDelegate( |
| 694 RenderViewHostDelegate::BookmarkDrag* bookmark_drag); | 694 RenderViewHostDelegate::BookmarkDrag* bookmark_drag); |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 | 976 |
| 977 // RenderViewHostManager::Delegate ------------------------------------------- | 977 // RenderViewHostManager::Delegate ------------------------------------------- |
| 978 | 978 |
| 979 // Blocks/unblocks interaction with renderer process. | 979 // Blocks/unblocks interaction with renderer process. |
| 980 void BlockTabContent(bool blocked); | 980 void BlockTabContent(bool blocked); |
| 981 | 981 |
| 982 virtual void BeforeUnloadFiredFromRenderManager( | 982 virtual void BeforeUnloadFiredFromRenderManager( |
| 983 bool proceed, | 983 bool proceed, |
| 984 bool* proceed_to_fire_unload); | 984 bool* proceed_to_fire_unload); |
| 985 virtual void DidStartLoadingFromRenderManager( | 985 virtual void DidStartLoadingFromRenderManager( |
| 986 RenderViewHost* render_view_host) { | 986 RenderViewHost* render_view_host); |
| 987 DidStartLoading(); | |
| 988 } | |
| 989 virtual void RenderViewGoneFromRenderManager( | 987 virtual void RenderViewGoneFromRenderManager( |
| 990 RenderViewHost* render_view_host) { | 988 RenderViewHost* render_view_host); |
| 991 RenderViewGone(render_view_host); | |
| 992 } | |
| 993 virtual void UpdateRenderViewSizeForRenderManager(); | 989 virtual void UpdateRenderViewSizeForRenderManager(); |
| 994 virtual void NotifySwappedFromRenderManager() { | 990 virtual void NotifySwappedFromRenderManager(); |
| 995 NotifySwapped(); | 991 virtual NavigationController& GetControllerForRenderManager(); |
| 996 } | |
| 997 virtual NavigationController& GetControllerForRenderManager() { | |
| 998 return controller(); | |
| 999 } | |
| 1000 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url); | 992 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url); |
| 1001 virtual NavigationEntry* GetLastCommittedNavigationEntryForRenderManager(); | 993 virtual NavigationEntry* GetLastCommittedNavigationEntryForRenderManager(); |
| 1002 | 994 |
| 1003 // Initializes the given renderer if necessary and creates the view ID | 995 // Initializes the given renderer if necessary and creates the view ID |
| 1004 // corresponding to this view host. If this method is not called and the | 996 // corresponding to this view host. If this method is not called and the |
| 1005 // process is not shared, then the TabContents will act as though the renderer | 997 // process is not shared, then the TabContents will act as though the renderer |
| 1006 // is not running (i.e., it will render "sad tab"). This method is | 998 // is not running (i.e., it will render "sad tab"). This method is |
| 1007 // automatically called from LoadURL. | 999 // automatically called from LoadURL. |
| 1008 // | 1000 // |
| 1009 // If you are attaching to an already-existing RenderView, you should call | 1001 // If you are attaching to an already-existing RenderView, you should call |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 | 1255 |
| 1264 // See description above setter. | 1256 // See description above setter. |
| 1265 bool closed_by_user_gesture_; | 1257 bool closed_by_user_gesture_; |
| 1266 | 1258 |
| 1267 // --------------------------------------------------------------------------- | 1259 // --------------------------------------------------------------------------- |
| 1268 | 1260 |
| 1269 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1261 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1270 }; | 1262 }; |
| 1271 | 1263 |
| 1272 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1264 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |