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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 // Sends the page title to the history service. This is called when we receive | 720 // Sends the page title to the history service. This is called when we receive |
721 // the page title and we know we want to update history. | 721 // the page title and we know we want to update history. |
722 void UpdateHistoryPageTitle(const NavigationEntry& entry); | 722 void UpdateHistoryPageTitle(const NavigationEntry& entry); |
723 | 723 |
724 // Gets the zoom level for this tab. | 724 // Gets the zoom level for this tab. |
725 double GetZoomLevel() const; | 725 double GetZoomLevel() const; |
726 | 726 |
727 // Gets the zoom percent for this tab. | 727 // Gets the zoom percent for this tab. |
728 int GetZoomPercent(bool* enable_increment, bool* enable_decrement); | 728 int GetZoomPercent(bool* enable_increment, bool* enable_decrement); |
729 | 729 |
| 730 // Opens view-source tab for this contents. |
| 731 void ViewSource(); |
| 732 |
730 // Gets the minimum/maximum zoom percent. | 733 // Gets the minimum/maximum zoom percent. |
731 int minimum_zoom_percent() const { return minimum_zoom_percent_; } | 734 int minimum_zoom_percent() const { return minimum_zoom_percent_; } |
732 int maximum_zoom_percent() const { return maximum_zoom_percent_; } | 735 int maximum_zoom_percent() const { return maximum_zoom_percent_; } |
733 | 736 |
734 int content_restrictions() const { return content_restrictions_; } | 737 int content_restrictions() const { return content_restrictions_; } |
735 | 738 |
736 private: | 739 private: |
737 friend class NavigationController; | 740 friend class NavigationController; |
738 // Used to access the child_windows_ (ConstrainedWindowList) for testing | 741 // Used to access the child_windows_ (ConstrainedWindowList) for testing |
739 // automation purposes. | 742 // automation purposes. |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 // Content restrictions, used to disable print/copy etc based on content's | 1328 // Content restrictions, used to disable print/copy etc based on content's |
1326 // (full-page plugins for now only) permissions. | 1329 // (full-page plugins for now only) permissions. |
1327 int content_restrictions_; | 1330 int content_restrictions_; |
1328 | 1331 |
1329 // --------------------------------------------------------------------------- | 1332 // --------------------------------------------------------------------------- |
1330 | 1333 |
1331 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1334 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1332 }; | 1335 }; |
1333 | 1336 |
1334 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1337 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |