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

Unified Diff: chrome/browser/gtk/tabs/tab_renderer_gtk.h

Issue 2824044: Implement App Tabs for GTK (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: last cr change Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/tabs/tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/tab_renderer_gtk.h
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.h b/chrome/browser/gtk/tabs/tab_renderer_gtk.h
index e666506fd818eb1709f43f3d661f86639237b4e9..4c168a76a68ffac3ee484523df6930f779ae9cec 100644
--- a/chrome/browser/gtk/tabs/tab_renderer_gtk.h
+++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.h
@@ -105,6 +105,7 @@ class TabRendererGtk : public AnimationDelegate,
// update everything.
virtual void UpdateData(TabContents* contents,
bool phantom,
+ bool app,
bool loading_only);
// Sets the blocked state of the tab.
@@ -119,6 +120,10 @@ class TabRendererGtk : public AnimationDelegate,
void set_phantom(bool phantom) { data_.phantom = phantom; }
bool phantom() const { return data_.phantom; }
+ // Sets the app state of the tab.
+ void set_app(bool app) { data_.app = app; }
+ bool app() const { return data_.app; }
+
// Are we in the process of animating a mini tab state change on this tab?
void set_animating_mini_change(bool value) {
data_.animating_mini_change = value;
@@ -257,7 +262,8 @@ class TabRendererGtk : public AnimationDelegate,
mini(false),
blocked(false),
animating_mini_change(false),
- phantom(false) {
+ phantom(false),
+ app(false) {
}
SkBitmap favicon;
@@ -271,6 +277,7 @@ class TabRendererGtk : public AnimationDelegate,
bool blocked;
bool animating_mini_change;
bool phantom;
+ bool app;
};
// TODO(jhawkins): Move into TabResources class.
@@ -280,6 +287,7 @@ class TabRendererGtk : public AnimationDelegate,
SkBitmap* image_r;
int l_width;
int r_width;
+ int y_offset;
};
// Overridden from AnimationDelegate:
@@ -376,8 +384,11 @@ class TabRendererGtk : public AnimationDelegate,
TabData data_;
static TabImage tab_active_;
+ static TabImage tab_active_nano_;
static TabImage tab_inactive_;
+ static TabImage tab_inactive_nano_;
static TabImage tab_alpha_;
+ static TabImage tab_alpha_nano_;
static gfx::Font* title_font_;
static int title_font_height_;
« no previous file with comments | « chrome/browser/gtk/tabs/tab_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_renderer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698