| 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 uint64 upload_position, uint64 upload_size); | 767 uint64 upload_position, uint64 upload_size); |
| 768 virtual bool IsExternalTabContainer() const; | 768 virtual bool IsExternalTabContainer() const; |
| 769 virtual void DidInsertCSS(); | 769 virtual void DidInsertCSS(); |
| 770 virtual void FocusedNodeChanged(bool is_editable_node); | 770 virtual void FocusedNodeChanged(bool is_editable_node); |
| 771 virtual void UpdateZoomLimits(int minimum_percent, | 771 virtual void UpdateZoomLimits(int minimum_percent, |
| 772 int maximum_percent, | 772 int maximum_percent, |
| 773 bool remember); | 773 bool remember); |
| 774 virtual void WorkerCrashed(); | 774 virtual void WorkerCrashed(); |
| 775 virtual void RequestDesktopNotificationPermission(const GURL& source_origin, | 775 virtual void RequestDesktopNotificationPermission(const GURL& source_origin, |
| 776 int callback_context); | 776 int callback_context); |
| 777 virtual bool IsHidden() const OVERRIDE; |
| 777 | 778 |
| 778 // RenderViewHostManager::Delegate ------------------------------------------- | 779 // RenderViewHostManager::Delegate ------------------------------------------- |
| 779 | 780 |
| 780 // Blocks/unblocks interaction with renderer process. | 781 // Blocks/unblocks interaction with renderer process. |
| 781 void BlockTabContent(bool blocked); | 782 void BlockTabContent(bool blocked); |
| 782 | 783 |
| 783 virtual void BeforeUnloadFiredFromRenderManager( | 784 virtual void BeforeUnloadFiredFromRenderManager( |
| 784 bool proceed, | 785 bool proceed, |
| 785 bool* proceed_to_fire_unload); | 786 bool* proceed_to_fire_unload); |
| 786 virtual void DidStartLoadingFromRenderManager( | 787 virtual void DidStartLoadingFromRenderManager( |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 // remember it. | 964 // remember it. |
| 964 bool temporary_zoom_settings_; | 965 bool temporary_zoom_settings_; |
| 965 | 966 |
| 966 // A list of observers notified when page state changes. Weak references. | 967 // A list of observers notified when page state changes. Weak references. |
| 967 ObserverList<TabContentsObserver> observers_; | 968 ObserverList<TabContentsObserver> observers_; |
| 968 | 969 |
| 969 // Content restrictions, used to disable print/copy etc based on content's | 970 // Content restrictions, used to disable print/copy etc based on content's |
| 970 // (full-page plugins for now only) permissions. | 971 // (full-page plugins for now only) permissions. |
| 971 int content_restrictions_; | 972 int content_restrictions_; |
| 972 | 973 |
| 974 // We need to know if the tab contents is hidden initially, before the |
| 975 // delegate is set. This variable os only used in the call to IsHidden() if |
| 976 // the delegate is NULL. |
| 977 bool is_initially_hidden_; |
| 978 |
| 973 DISALLOW_COPY_AND_ASSIGN(TabContents); | 979 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 974 }; | 980 }; |
| 975 | 981 |
| 976 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 982 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |