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

Side by Side Diff: chrome/browser/ui/tabs/tab_utils.cc

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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/tabs/tab_utils.h" 5 #include "chrome/browser/ui/tabs/tab_utils.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 9 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
10 #include "chrome/browser/media/media_stream_capture_indicator.h" 10 #include "chrome/browser/media/media_stream_capture_indicator.h"
(...skipping 21 matching lines...) Expand all
32 const int kIndicatorFadeInDurationMs = 200; 32 const int kIndicatorFadeInDurationMs = 200;
33 const int kIndicatorFadeOutDurationMs = 1000; 33 const int kIndicatorFadeOutDurationMs = 1000;
34 34
35 // Animation that throbs in (towards 1.0) and out (towards 0.0), and ends in the 35 // Animation that throbs in (towards 1.0) and out (towards 0.0), and ends in the
36 // "in" state. 36 // "in" state.
37 class TabRecordingIndicatorAnimation : public gfx::MultiAnimation { 37 class TabRecordingIndicatorAnimation : public gfx::MultiAnimation {
38 public: 38 public:
39 virtual ~TabRecordingIndicatorAnimation() {} 39 virtual ~TabRecordingIndicatorAnimation() {}
40 40
41 // Overridden to provide alternating "towards in" and "towards out" behavior. 41 // Overridden to provide alternating "towards in" and "towards out" behavior.
42 virtual double GetCurrentValue() const OVERRIDE; 42 virtual double GetCurrentValue() const override;
43 43
44 static scoped_ptr<TabRecordingIndicatorAnimation> Create(); 44 static scoped_ptr<TabRecordingIndicatorAnimation> Create();
45 45
46 private: 46 private:
47 TabRecordingIndicatorAnimation(const gfx::MultiAnimation::Parts& parts, 47 TabRecordingIndicatorAnimation(const gfx::MultiAnimation::Parts& parts,
48 const base::TimeDelta interval) 48 const base::TimeDelta interval)
49 : MultiAnimation(parts, interval) {} 49 : MultiAnimation(parts, interval) {}
50 50
51 // Number of times to "toggle throb" the recording and tab capture indicators 51 // Number of times to "toggle throb" the recording and tab capture indicators
52 // when they first appear. 52 // when they first appear.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 const std::vector<int>& indices) { 270 const std::vector<int>& indices) {
271 for (std::vector<int>::const_iterator i = indices.begin(); i != indices.end(); 271 for (std::vector<int>::const_iterator i = indices.begin(); i != indices.end();
272 ++i) { 272 ++i) {
273 if (!IsTabAudioMuted(tab_strip.GetWebContentsAt(*i))) 273 if (!IsTabAudioMuted(tab_strip.GetWebContentsAt(*i)))
274 return false; 274 return false;
275 } 275 }
276 return true; 276 return true;
277 } 277 }
278 278
279 } // namespace chrome 279 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/ui/tabs/test_tab_strip_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698