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

Side by Side Diff: chrome/browser/views/tabs/tab_renderer.h

Issue 27317: Support DWM switching.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « chrome/browser/views/info_bubble.cc ('k') | chrome/browser/views/tabs/tab_renderer.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_TABS_TAB_RENDERER_H__ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_RENDERER_H__
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_RENDERER_H__ 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_RENDERER_H__
7 7
8 #include "base/gfx/point.h" 8 #include "base/gfx/point.h"
9 #include "chrome/common/animation.h" 9 #include "chrome/common/animation.h"
10 #include "chrome/common/slide_animation.h" 10 #include "chrome/common/slide_animation.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Returns the title of the Tab. 70 // Returns the title of the Tab.
71 std::wstring GetTitle() const; 71 std::wstring GetTitle() const;
72 72
73 private: 73 private:
74 // Overridden from views::View: 74 // Overridden from views::View:
75 virtual void Paint(ChromeCanvas* canvas); 75 virtual void Paint(ChromeCanvas* canvas);
76 virtual void Layout(); 76 virtual void Layout();
77 virtual void OnMouseEntered(const views::MouseEvent& event); 77 virtual void OnMouseEntered(const views::MouseEvent& event);
78 virtual void OnMouseExited(const views::MouseEvent& event); 78 virtual void OnMouseExited(const views::MouseEvent& event);
79 virtual void ThemeChanged();
79 80
80 // Overridden from AnimationDelegate: 81 // Overridden from AnimationDelegate:
81 virtual void AnimationProgressed(const Animation* animation); 82 virtual void AnimationProgressed(const Animation* animation);
82 virtual void AnimationCanceled(const Animation* animation); 83 virtual void AnimationCanceled(const Animation* animation);
83 virtual void AnimationEnded(const Animation* animation); 84 virtual void AnimationEnded(const Animation* animation);
84 85
85 // Starts/Stops the crash animation. 86 // Starts/Stops the crash animation.
86 void StartCrashAnimation(); 87 void StartCrashAnimation();
87 void StopCrashAnimation(); 88 void StopCrashAnimation();
88 89
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 // The offset used to animate the favicon location. 161 // The offset used to animate the favicon location.
161 int fav_icon_hiding_offset_; 162 int fav_icon_hiding_offset_;
162 163
163 // The animation object used to swap the favicon with the sad tab icon. 164 // The animation object used to swap the favicon with the sad tab icon.
164 class FavIconCrashAnimation; 165 class FavIconCrashAnimation;
165 FavIconCrashAnimation* crash_animation_; 166 FavIconCrashAnimation* crash_animation_;
166 167
167 bool should_display_crashed_favicon_; 168 bool should_display_crashed_favicon_;
168 169
170 static void InitClass();
171 static bool initialized_;
172
169 DISALLOW_EVIL_CONSTRUCTORS(TabRenderer); 173 DISALLOW_EVIL_CONSTRUCTORS(TabRenderer);
170 }; 174 };
171 175
172 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_RENDERER_H__ 176 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_RENDERER_H__
173 177
OLDNEW
« no previous file with comments | « chrome/browser/views/info_bubble.cc ('k') | chrome/browser/views/tabs/tab_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698