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

Unified Diff: chrome/browser/ui/views/sidebar/sidebar_tab_renderer_data.h

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/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
« no previous file with comments | « chrome/browser/ui/views/sidebar/sidebar_tab_controller.h ('k') | chrome/browser/ui/views/sidebar/sidebar_tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698