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

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

Issue 12328027: Audio indicator in each tab (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_renderer_data.h ('k') | no next file » | 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 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" 5 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h"
6 6
7 TabRendererData::TabRendererData() 7 TabRendererData::TabRendererData()
8 : network_state(NETWORK_STATE_NONE), 8 : network_state(NETWORK_STATE_NONE),
9 loading(false), 9 loading(false),
10 crashed_status(base::TERMINATION_STATUS_STILL_RUNNING), 10 crashed_status(base::TERMINATION_STATUS_STILL_RUNNING),
11 incognito(false), 11 incognito(false),
12 show_icon(true), 12 show_icon(true),
13 mini(false), 13 mini(false),
14 blocked(false), 14 blocked(false),
15 app(false), 15 app(false),
16 capture_state(CAPTURE_STATE_NONE) { 16 capture_state(CAPTURE_STATE_NONE),
17 audio_state(AUDIO_STATE_NONE) {
17 } 18 }
18 19
19 TabRendererData::~TabRendererData() {} 20 TabRendererData::~TabRendererData() {}
20 21
21 bool TabRendererData::Equals(const TabRendererData& data) { 22 bool TabRendererData::Equals(const TabRendererData& data) {
22 return 23 return
23 favicon.BackedBySameObjectAs(data.favicon) && 24 favicon.BackedBySameObjectAs(data.favicon) &&
24 network_state == data.network_state && 25 network_state == data.network_state &&
25 title == data.title && 26 title == data.title &&
26 url == data.url && 27 url == data.url &&
27 loading == data.loading && 28 loading == data.loading &&
28 crashed_status == data.crashed_status && 29 crashed_status == data.crashed_status &&
29 incognito == data.incognito && 30 incognito == data.incognito &&
30 show_icon == data.show_icon && 31 show_icon == data.show_icon &&
31 mini == data.mini && 32 mini == data.mini &&
32 blocked == data.blocked && 33 blocked == data.blocked &&
33 app == data.app && 34 app == data.app &&
34 capture_state == data.capture_state; 35 capture_state == data.capture_state &&
36 audio_state == data.audio_state;
35 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_renderer_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698