OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "chrome/browser/ui/search/search_types.h" |
| 12 #include "chrome/browser/ui/search/toolbar_search_animator.h" |
11 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
13 | 15 |
14 // Wraps the state needed by the renderers. | 16 // Wraps the state needed by the renderers. |
15 struct TabRendererData { | 17 struct TabRendererData { |
16 // Different types of network activity for a tab. The NetworkState of a tab | 18 // Different types of network activity for a tab. The NetworkState of a tab |
17 // may be used to alter the UI (e.g. show different kinds of loading | 19 // may be used to alter the UI (e.g. show different kinds of loading |
18 // animations). | 20 // animations). |
19 enum NetworkState { | 21 enum NetworkState { |
20 NETWORK_STATE_NONE, // no network activity. | 22 NETWORK_STATE_NONE, // no network activity. |
(...skipping 21 matching lines...) Expand all Loading... |
42 NetworkState network_state; | 44 NetworkState network_state; |
43 string16 title; | 45 string16 title; |
44 GURL url; | 46 GURL url; |
45 bool loading; | 47 bool loading; |
46 base::TerminationStatus crashed_status; | 48 base::TerminationStatus crashed_status; |
47 bool incognito; | 49 bool incognito; |
48 bool show_icon; | 50 bool show_icon; |
49 bool mini; | 51 bool mini; |
50 bool blocked; | 52 bool blocked; |
51 bool app; | 53 bool app; |
| 54 chrome::search::Mode::Type mode; |
| 55 // Only applicable if |mode| is chrome::search::Mode::SEARCH. |
| 56 chrome::search::ToolbarSearchAnimator::BackgroundState background_state; |
| 57 // Only applicable if |background_state| is or a combination including |
| 58 // chrome::search::ToolbarSearchAnimator::BACKGROUND_STATE_SHOW_NEW; |
| 59 double search_background_opacity; |
52 }; | 60 }; |
53 | 61 |
54 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ | 62 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ |
OLD | NEW |