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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
735 // Immediately removes the fade. | 735 // Immediately removes the fade. |
736 void CancelInstantFade(); | 736 void CancelInstantFade(); |
737 | 737 |
738 // Opens view-source tab for this contents. | 738 // Opens view-source tab for this contents. |
739 void ViewSource(); | 739 void ViewSource(); |
740 | 740 |
741 // Gets the minimum/maximum zoom percent. | 741 // Gets the minimum/maximum zoom percent. |
742 int minimum_zoom_percent() const { return minimum_zoom_percent_; } | 742 int minimum_zoom_percent() const { return minimum_zoom_percent_; } |
743 int maximum_zoom_percent() const { return maximum_zoom_percent_; } | 743 int maximum_zoom_percent() const { return maximum_zoom_percent_; } |
744 | 744 |
745 bool focused_field_is_editable() const { | |
746 return focused_field_is_editable_; | |
747 } | |
745 int content_restrictions() const { return content_restrictions_; } | 748 int content_restrictions() const { return content_restrictions_; } |
746 | 749 |
747 AutocompleteHistoryManager* autocomplete_history_manager() { | 750 AutocompleteHistoryManager* autocomplete_history_manager() { |
748 return autocomplete_history_manager_.get(); | 751 return autocomplete_history_manager_.get(); |
749 } | 752 } |
750 AutoFillManager* autofill_manager() { return autofill_manager_.get(); } | 753 AutoFillManager* autofill_manager() { return autofill_manager_.get(); } |
751 | 754 |
752 protected: | 755 protected: |
753 // from RenderViewHostDelegate. | 756 // from RenderViewHostDelegate. |
754 virtual bool OnMessageReceived(const IPC::Message& message); | 757 virtual bool OnMessageReceived(const IPC::Message& message); |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1324 bool closed_by_user_gesture_; | 1327 bool closed_by_user_gesture_; |
1325 | 1328 |
1326 // Minimum/maximum zoom percent. | 1329 // Minimum/maximum zoom percent. |
1327 int minimum_zoom_percent_; | 1330 int minimum_zoom_percent_; |
1328 int maximum_zoom_percent_; | 1331 int maximum_zoom_percent_; |
1329 // If true, the default zoom limits have been overriden for this tab, in which | 1332 // If true, the default zoom limits have been overriden for this tab, in which |
1330 // case we don't want saved settings to apply to it and we don't want to | 1333 // case we don't want saved settings to apply to it and we don't want to |
1331 // remember it. | 1334 // remember it. |
1332 bool temporary_zoom_settings_; | 1335 bool temporary_zoom_settings_; |
1333 | 1336 |
1337 // Whether the focused field in the tab is an editable field. | |
1338 bool focused_field_is_editable_; | |
sky
2011/01/25 21:37:23
You need to initialize this in the constructor.
| |
1339 | |
1334 // A list of observers notified when page state changes. Weak references. | 1340 // A list of observers notified when page state changes. Weak references. |
1335 ObserverList<WebNavigationObserver> web_navigation_observers_; | 1341 ObserverList<WebNavigationObserver> web_navigation_observers_; |
1336 | 1342 |
1337 // Content restrictions, used to disable print/copy etc based on content's | 1343 // Content restrictions, used to disable print/copy etc based on content's |
1338 // (full-page plugins for now only) permissions. | 1344 // (full-page plugins for now only) permissions. |
1339 int content_restrictions_; | 1345 int content_restrictions_; |
1340 | 1346 |
1341 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1347 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1342 }; | 1348 }; |
1343 | 1349 |
1344 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1350 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |