| 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 // the page title and we know we want to update history. | 727 // the page title and we know we want to update history. |
| 728 void UpdateHistoryPageTitle(const NavigationEntry& entry); | 728 void UpdateHistoryPageTitle(const NavigationEntry& entry); |
| 729 | 729 |
| 730 // Gets the zoom level for this tab. | 730 // Gets the zoom level for this tab. |
| 731 double GetZoomLevel() const; | 731 double GetZoomLevel() const; |
| 732 | 732 |
| 733 // Gets the zoom percent for this tab. | 733 // Gets the zoom percent for this tab. |
| 734 int GetZoomPercent(bool* enable_increment, bool* enable_decrement); | 734 int GetZoomPercent(bool* enable_increment, bool* enable_decrement); |
| 735 | 735 |
| 736 // Shows a fade effect over this tab contents. Repeated calls will be ignored | 736 // Shows a fade effect over this tab contents. Repeated calls will be ignored |
| 737 // until the fade is canceled. | 737 // until the fade is canceled. If |animate| is true the fade should animate. |
| 738 void FadeForInstant(); | 738 void FadeForInstant(bool animate); |
| 739 | 739 |
| 740 // Immediately removes the fade. | 740 // Immediately removes the fade. |
| 741 void CancelInstantFade(); | 741 void CancelInstantFade(); |
| 742 | 742 |
| 743 // Opens view-source tab for this contents. | 743 // Opens view-source tab for this contents. |
| 744 void ViewSource(); | 744 void ViewSource(); |
| 745 | 745 |
| 746 // Gets the minimum/maximum zoom percent. | 746 // Gets the minimum/maximum zoom percent. |
| 747 int minimum_zoom_percent() const { return minimum_zoom_percent_; } | 747 int minimum_zoom_percent() const { return minimum_zoom_percent_; } |
| 748 int maximum_zoom_percent() const { return maximum_zoom_percent_; } | 748 int maximum_zoom_percent() const { return maximum_zoom_percent_; } |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 // Content restrictions, used to disable print/copy etc based on content's | 1344 // Content restrictions, used to disable print/copy etc based on content's |
| 1345 // (full-page plugins for now only) permissions. | 1345 // (full-page plugins for now only) permissions. |
| 1346 int content_restrictions_; | 1346 int content_restrictions_; |
| 1347 | 1347 |
| 1348 // --------------------------------------------------------------------------- | 1348 // --------------------------------------------------------------------------- |
| 1349 | 1349 |
| 1350 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1350 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1351 }; | 1351 }; |
| 1352 | 1352 |
| 1353 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1353 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |