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

Side by Side Diff: ash/content/display/screen_orientation_controller_chromeos.h

Issue 1151133003: Added an ActivationReason parameter to ActivationChangeObserver::OnWindowActivated(...). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploaded diff based on dependant CL. Created 5 years, 6 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
« no previous file with comments | « no previous file | ash/content/display/screen_orientation_controller_chromeos.cc » ('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 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 #ifndef ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ 5 #ifndef ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_
6 #define ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ 6 #define ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // display rotation. 69 // display rotation.
70 void SetRotationLocked(bool rotation_locked); 70 void SetRotationLocked(bool rotation_locked);
71 71
72 // Sets the display rotation for the given |source|. The new |rotation| will 72 // Sets the display rotation for the given |source|. The new |rotation| will
73 // also become active. Display changed notifications are surpressed for this 73 // also become active. Display changed notifications are surpressed for this
74 // change. 74 // change.
75 void SetDisplayRotation(gfx::Display::Rotation rotation, 75 void SetDisplayRotation(gfx::Display::Rotation rotation,
76 gfx::Display::RotationSource source); 76 gfx::Display::RotationSource source);
77 77
78 // aura::client::ActivationChangeObserver: 78 // aura::client::ActivationChangeObserver:
79 void OnWindowActivated(aura::Window* gained_active, 79 void OnWindowActivated(
80 aura::Window* lost_active) override; 80 aura::client::ActivationChangeObserver::ActivationReason reason,
81 aura::Window* gained_active,
82 aura::Window* lost_active) override;
81 83
82 // aura::WindowObserver: 84 // aura::WindowObserver:
83 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 85 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
84 void OnWindowDestroying(aura::Window* window) override; 86 void OnWindowDestroying(aura::Window* window) override;
85 87
86 // chromeos::AccelerometerReader::Observer: 88 // chromeos::AccelerometerReader::Observer:
87 void OnAccelerometerUpdated( 89 void OnAccelerometerUpdated(
88 scoped_refptr<const chromeos::AccelerometerUpdate> update) override; 90 scoped_refptr<const chromeos::AccelerometerUpdate> update) override;
89 91
90 // content::ScreenOrientationDelegate: 92 // content::ScreenOrientationDelegate:
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Tracks all windows that have requested a lock, as well as the requested 186 // Tracks all windows that have requested a lock, as well as the requested
185 // orientation. 187 // orientation.
186 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_; 188 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_;
187 189
188 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); 190 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController);
189 }; 191 };
190 192
191 } // namespace ash 193 } // namespace ash
192 194
193 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ 195 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/content/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698