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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_renderer_data.h

Issue 2579893002: Revert "Add tab status to accessibility labels". (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/ui/tabs/tab_utils.h" 9 #include "chrome/browser/ui/tabs/tab_utils.h"
10 #include "chrome/browser/ui/views/chrome_views_export.h" 10 #include "chrome/browser/ui/views/chrome_views_export.h"
11 #include "ui/gfx/image/image_skia.h" 11 #include "ui/gfx/image/image_skia.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 // Wraps the state needed by the renderers. 14 // Wraps the state needed by the renderers.
15 struct CHROME_VIEWS_EXPORT TabRendererData { 15 struct CHROME_VIEWS_EXPORT TabRendererData {
16 // Different types of network activity for a tab. The NetworkState of a tab 16 // 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 17 // may be used to alter the UI (e.g. show different kinds of loading
18 // animations). 18 // animations).
19 enum NetworkState { 19 enum NetworkState {
20 NETWORK_STATE_NONE, // no network activity. 20 NETWORK_STATE_NONE, // no network activity.
21 NETWORK_STATE_WAITING, // waiting for a connection. 21 NETWORK_STATE_WAITING, // waiting for a connection.
22 NETWORK_STATE_LOADING, // connected, transferring data. 22 NETWORK_STATE_LOADING, // connected, transferring data.
23 NETWORK_STATE_ERROR, // Encountered a network error.
24 }; 23 };
25 24
26 TabRendererData(); 25 TabRendererData();
27 TabRendererData(const TabRendererData& other); 26 TabRendererData(const TabRendererData& other);
28 ~TabRendererData(); 27 ~TabRendererData();
29 28
30 // This interprets the crashed status to decide whether or not this 29 // This interprets the crashed status to decide whether or not this
31 // render data represents a tab that is "crashed" (i.e. the render 30 // render data represents a tab that is "crashed" (i.e. the render
32 // process died unexpectedly). 31 // process died unexpectedly).
33 bool IsCrashed() const; 32 bool IsCrashed() const;
34 33
35 // Returns true if the TabRendererData is same as given |data|. 34 // Returns true if the TabRendererData is same as given |data|.
36 bool Equals(const TabRendererData& data); 35 bool Equals(const TabRendererData& data);
37 36
38 gfx::ImageSkia favicon; 37 gfx::ImageSkia favicon;
39 NetworkState network_state; 38 NetworkState network_state;
40 base::string16 title; 39 base::string16 title;
41 GURL url; 40 GURL url;
42 bool loading; 41 bool loading;
43 base::TerminationStatus crashed_status; 42 base::TerminationStatus crashed_status;
44 bool incognito; 43 bool incognito;
45 bool show_icon; 44 bool show_icon;
46 bool pinned; 45 bool pinned;
47 bool blocked; 46 bool blocked;
48 bool app; 47 bool app;
49 TabAlertState alert_state; 48 TabAlertState alert_state;
50 }; 49 };
51 50
52 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ 51 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698