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

Side by Side Diff: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc

Issue 2424853003: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/ui (Closed)
Patch Set: explicit types Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/webui/chromeos/touch_view_controller_delegate.h" 5 #include "chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h"
6 6
7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 14 matching lines...) Expand all
25 observers_.RemoveObserver(observer); 25 observers_.RemoveObserver(observer);
26 } 26 }
27 27
28 bool TouchViewControllerDelegate::IsMaximizeModeEnabled() const { 28 bool TouchViewControllerDelegate::IsMaximizeModeEnabled() const {
29 return ash::WmShell::Get() 29 return ash::WmShell::Get()
30 ->maximize_mode_controller() 30 ->maximize_mode_controller()
31 ->IsMaximizeModeWindowManagerEnabled(); 31 ->IsMaximizeModeWindowManagerEnabled();
32 } 32 }
33 33
34 void TouchViewControllerDelegate::OnMaximizeModeStarted() { 34 void TouchViewControllerDelegate::OnMaximizeModeStarted() {
35 FOR_EACH_OBSERVER(Observer, observers_, OnMaximizeModeStarted()); 35 for (Observer& observer : observers_)
36 observer.OnMaximizeModeStarted();
36 } 37 }
37 38
38 void TouchViewControllerDelegate::OnMaximizeModeEnded() { 39 void TouchViewControllerDelegate::OnMaximizeModeEnded() {
39 FOR_EACH_OBSERVER(Observer, observers_, OnMaximizeModeEnded()); 40 for (Observer& observer : observers_)
41 observer.OnMaximizeModeEnded();
40 } 42 }
41 43
42 } // namespace chromeos 44 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | chrome/browser/ui/webui/media_router/query_result_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698