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

Unified Diff: chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h

Issue 10662032: alternate ntp (cros/partial-win): add tab-related stuff and toolbar/tab background change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments Created 8 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
Index: chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
diff --git a/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h b/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
index e9318b0866b6ec8f59a4fa1251f4dc987ee7eea5..2be29d333265105c31cb96c2a56df031cc128409 100644
--- a/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
+++ b/chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h
@@ -8,6 +8,8 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/search/search_types.h"
+#include "chrome/browser/ui/search/toolbar_search_animator_observer.h"
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "chrome/browser/ui/views/tab_icon_view.h"
#include "ui/views/controls/button/button.h" // ButtonListener
@@ -19,9 +21,11 @@ namespace views {
class ImageButton;
}
-class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
- public views::ButtonListener,
- public TabIconView::TabIconViewModel {
+class BrowserNonClientFrameViewAsh
+ : public BrowserNonClientFrameView,
+ public views::ButtonListener,
+ public TabIconView::TabIconViewModel,
+ public chrome::search::ToolbarSearchAnimatorObserver {
public:
static const char kViewClassName[];
@@ -62,6 +66,11 @@ class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
virtual bool ShouldTabIconViewAnimate() const OVERRIDE;
virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE;
+ // Overridden from chrome::search::ToolbarSearchAnimatorObserver:
+ virtual void OnToolbarBackgroundAnimatorProgressed() OVERRIDE;
+ virtual void OnToolbarBackgroundAnimatorCanceled(
+ TabContents* tab_contents) OVERRIDE;
+
private:
FRIEND_TEST_ALL_PREFIXES(BrowserNonClientFrameViewAshTest, UseShortHeader);
@@ -75,7 +84,8 @@ class BrowserNonClientFrameViewAsh : public BrowserNonClientFrameView,
void LayoutAvatar();
void PaintTitleBar(gfx::Canvas* canvas);
- void PaintToolbarBackground(gfx::Canvas* canvas);
+ void PaintToolbarBackground(gfx::Canvas* canvas,
+ chrome::search::Mode::Type mode);
// Windows without a toolbar need to draw their own line under the header,
// above the content area.

Powered by Google App Engine
This is Rietveld 408576698