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

Side by Side Diff: chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h

Issue 6933037: Multi-tab selection for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing clang errors Created 9 years, 5 months 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
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_UI_GTK_TABS_TAB_RENDERER_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 #include <map> 10 #include <map>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bool app() const { return data_.app; } 125 bool app() const { return data_.app; }
126 126
127 // Are we in the process of animating a mini tab state change on this tab? 127 // Are we in the process of animating a mini tab state change on this tab?
128 void set_animating_mini_change(bool value) { 128 void set_animating_mini_change(bool value) {
129 data_.animating_mini_change = value; 129 data_.animating_mini_change = value;
130 } 130 }
131 131
132 // Updates the display to reflect the contents of this TabRenderer's model. 132 // Updates the display to reflect the contents of this TabRenderer's model.
133 void UpdateFromModel(); 133 void UpdateFromModel();
134 134
135 // Returns true if the Tab is active, false otherwise.
136 virtual bool IsActive() const;
137
135 // Returns true if the Tab is selected, false otherwise. 138 // Returns true if the Tab is selected, false otherwise.
136 virtual bool IsSelected() const; 139 virtual bool IsSelected() const;
137 140
138 // Returns true if the Tab is visible, false otherwise. 141 // Returns true if the Tab is visible, false otherwise.
139 virtual bool IsVisible() const; 142 virtual bool IsVisible() const;
140 143
141 // Sets the visibility of the Tab. 144 // Sets the visibility of the Tab.
142 virtual void SetVisible(bool visible) const; 145 virtual void SetVisible(bool visible) const;
143 146
144 // Paints the tab into |canvas|. 147 // Paints the tab into |canvas|.
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // The current color of the close button. 450 // The current color of the close button.
448 SkColor close_button_color_; 451 SkColor close_button_color_;
449 452
450 // Used to listen for theme change notifications. 453 // Used to listen for theme change notifications.
451 NotificationRegistrar registrar_; 454 NotificationRegistrar registrar_;
452 455
453 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk); 456 DISALLOW_COPY_AND_ASSIGN(TabRendererGtk);
454 }; 457 };
455 458
456 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_ 459 #endif // CHROME_BROWSER_UI_GTK_TABS_TAB_RENDERER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_gtk.cc ('k') | chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698