Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 5790002: [gtk] tabcontents fade-out for instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 // Shows a fade effect over this tab contents. Repeated calls will be ignored
731 // until the fade is canceled.
732 void FadeForInstant();
733 // Immediately removes the fade.
734 void CancelInstantFade();
735
730 // Gets the minimum/maximum zoom percent. 736 // Gets the minimum/maximum zoom percent.
731 int minimum_zoom_percent() const { return minimum_zoom_percent_; } 737 int minimum_zoom_percent() const { return minimum_zoom_percent_; }
732 int maximum_zoom_percent() const { return maximum_zoom_percent_; } 738 int maximum_zoom_percent() const { return maximum_zoom_percent_; }
733 739
734 int content_restrictions() const { return content_restrictions_; } 740 int content_restrictions() const { return content_restrictions_; }
735 741
736 private: 742 private:
737 friend class NavigationController; 743 friend class NavigationController;
738 // Used to access the child_windows_ (ConstrainedWindowList) for testing 744 // Used to access the child_windows_ (ConstrainedWindowList) for testing
739 // automation purposes. 745 // automation purposes.
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 // Content restrictions, used to disable print/copy etc based on content's 1331 // Content restrictions, used to disable print/copy etc based on content's
1326 // (full-page plugins for now only) permissions. 1332 // (full-page plugins for now only) permissions.
1327 int content_restrictions_; 1333 int content_restrictions_;
1328 1334
1329 // --------------------------------------------------------------------------- 1335 // ---------------------------------------------------------------------------
1330 1336
1331 DISALLOW_COPY_AND_ASSIGN(TabContents); 1337 DISALLOW_COPY_AND_ASSIGN(TabContents);
1332 }; 1338 };
1333 1339
1334 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1340 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698