Index: chrome/browser/ui/views/sidebar/sidebar_tab_renderer_data.h |
=================================================================== |
--- chrome/browser/ui/views/sidebar/sidebar_tab_renderer_data.h (revision 0) |
+++ chrome/browser/ui/views/sidebar/sidebar_tab_renderer_data.h (revision 0) |
@@ -0,0 +1,39 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_RENDERER_DATA_H_ |
+#define CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_RENDERER_DATA_H_ |
+#pragma once |
+ |
+#include "base/string16.h" |
+#include "third_party/skia/include/core/SkBitmap.h" |
+ |
+// Wraps the state needed to render the sidebar mini tab. |
+struct SidebarTabRendererData { |
+ // Different types of network activity for a sidebar contents corresponding |
+ // to this tab. The NetworkState of a tab contents may be used to alter the UI |
+ // (e.g. show different kinds of loading animations). |
+ enum NetworkState { |
+ NETWORK_STATE_NONE, // no network activity. |
+ NETWORK_STATE_WAITING, // waiting for a connection. |
+ NETWORK_STATE_LOADING, // connected, transferring data. |
+ }; |
+ |
+ SidebarTabRendererData() |
+ : network_state(NETWORK_STATE_NONE), |
+ crashed(false) { |
+ } |
+ |
+ // Cached sidebar properties. |
+ SkBitmap icon; |
+ string16 title; |
+ string16 badge_text; |
+ // Sidebar's contents network state. |
+ NetworkState network_state; |
+ // Whether the sidebar's contents renderer crashed or not. |
+ bool crashed; |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_VIEWS_SIDEBAR_SIDEBAR_TAB_RENDERER_DATA_H_ |
+ |
Property changes on: chrome\browser\ui\views\sidebar\sidebar_tab_renderer_data.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |