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

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: removed images from cl 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..2bf91ef3c74d5fd2e0e2896592cfdb23e5118304 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,13 @@ struct TabRendererData {
bool mini;
bool blocked;
bool app;
+ bool search_enabled;
sky 2012/06/26 17:11:27 search_enabled shouldn't be per tab. Put a method
kuan 2012/06/26 23:25:49 Done. i assume u meant add the method all the way
sky 2012/06/27 00:06:17 I was thinking you would pass the state into the T
kuan 2012/06/27 00:50:03 Done.
+ 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;
+ int new_background_opacity;
};
#endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698