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

Unified Diff: chrome/browser/ui/views/tabs/tab_renderer_data.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, fixed bookmark background and moved frame code, fixed unittests build b… 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/tabs/tab_renderer_data.h
diff --git a/chrome/browser/ui/views/tabs/tab_renderer_data.h b/chrome/browser/ui/views/tabs/tab_renderer_data.h
index ce605ea552a2ba2671a6c3470daf2806414a30d9..d1c2fff89193a78be5723259a43fbce42fb0c4fe 100644
--- a/chrome/browser/ui/views/tabs/tab_renderer_data.h
+++ b/chrome/browser/ui/views/tabs/tab_renderer_data.h
@@ -8,6 +8,8 @@
#include "base/process_util.h"
#include "base/string16.h"
+#include "chrome/browser/ui/search/search_types.h"
+#include "chrome/browser/ui/search/toolbar_search_animator.h"
#include "googleurl/src/gurl.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -49,6 +51,12 @@ struct TabRendererData {
bool mini;
bool blocked;
bool app;
+ chrome::search::Mode::Type mode;
+ // Only applicable if |mode| is chrome::search::Mode::SEARCH.
+ chrome::search::ToolbarSearchAnimator::BackgroundState background_state;
+ // Only applicable if |background_state| is or a combination including
+ // chrome::search::ToolbarSearchAnimator::BACKGROUND_STATE_SHOW_NEW;
+ double new_background_opacity;
sky 2012/06/27 04:18:36 new is confusing here. How about search_background
kuan 2012/06/27 10:29:52 Done, also changed ToolbarSearchAnimator::GetCurre
};
#endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698