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

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

Issue 471973002: Single pod autofocus disabled for touch view mode. Delegate class created for ash interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dummy handler added. Created 6 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h"
6
7 #include "ash/shell.h"
8 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
9
10 namespace chromeos {
11
12 TouchViewControllerDelegate::TouchViewControllerDelegate() {
13 ash::Shell::GetInstance()->AddShellObserver(this);
14 }
15
16 TouchViewControllerDelegate::~TouchViewControllerDelegate() {
17 ash::Shell::GetInstance()->RemoveShellObserver(this);
18 }
19
20 void TouchViewControllerDelegate::AddObserver(Observer* observer) {
21 observers_.AddObserver(observer);
22 }
23
24 void TouchViewControllerDelegate::RemoveObserver(Observer* observer) {
25 observers_.RemoveObserver(observer);
26 }
27
28 bool TouchViewControllerDelegate::IsMaximizeModeEnabled() const {
29 return ash::Shell::GetInstance()->maximize_mode_controller()->
30 IsMaximizeModeWindowManagerEnabled();
31 }
32
33 void TouchViewControllerDelegate::OnMaximizeModeStarted() {
34 FOR_EACH_OBSERVER(Observer, observers_, OnMaximizeModeStarted());
35 }
36
37 void TouchViewControllerDelegate::OnMaximizeModeEnded() {
38 FOR_EACH_OBSERVER(Observer, observers_, OnMaximizeModeEnded());
39 }
40
41 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698