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

Side by Side Diff: ash/display/projecting_observer_chromeos.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
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_DISPLAY_PROJECTING_OBSERVER_CHROMEOS_H_ 5 #ifndef ASH_DISPLAY_PROJECTING_OBSERVER_CHROMEOS_H_
6 #define ASH_DISPLAY_PROJECTING_OBSERVER_CHROMEOS_H_ 6 #define ASH_DISPLAY_PROJECTING_OBSERVER_CHROMEOS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ui/display/chromeos/output_configurator.h" 9 #include "ui/display/chromeos/output_configurator.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 namespace internal {
14
15 class ASH_EXPORT ProjectingObserver : public ui::OutputConfigurator::Observer { 13 class ASH_EXPORT ProjectingObserver : public ui::OutputConfigurator::Observer {
16 public: 14 public:
17 ProjectingObserver(); 15 ProjectingObserver();
18 virtual ~ProjectingObserver(); 16 virtual ~ProjectingObserver();
19 17
20 // Called when a casting session is started or stopped. 18 // Called when a casting session is started or stopped.
21 void OnCastingSessionStartedOrStopped(bool started); 19 void OnCastingSessionStartedOrStopped(bool started);
22 20
23 // OutputConfigurator::Observer implementation: 21 // OutputConfigurator::Observer implementation:
24 virtual void OnDisplayModeChanged( 22 virtual void OnDisplayModeChanged(
25 const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE; 23 const ui::OutputConfigurator::DisplayStateList& outputs) OVERRIDE;
26 24
27 private: 25 private:
28 // Sends the current projecting state to power manager. 26 // Sends the current projecting state to power manager.
29 void SetIsProjecting(); 27 void SetIsProjecting();
30 28
31 // True if at least one output is internal. This value is updated when 29 // True if at least one output is internal. This value is updated when
32 // |OnDisplayModeChanged| is called. 30 // |OnDisplayModeChanged| is called.
33 bool has_internal_output_; 31 bool has_internal_output_;
34 32
35 // Keeps track of the number of connected outputs. 33 // Keeps track of the number of connected outputs.
36 int output_count_; 34 int output_count_;
37 35
38 // Number of outstanding casting sessions. 36 // Number of outstanding casting sessions.
39 int casting_session_count_; 37 int casting_session_count_;
40 38
41 DISALLOW_COPY_AND_ASSIGN(ProjectingObserver); 39 DISALLOW_COPY_AND_ASSIGN(ProjectingObserver);
42 }; 40 };
43 41
44 } // namespace internal
45
46 } // namespace ash 42 } // namespace ash
47 43
48 #endif // ASH_DISPLAY_PROJECTING_OBSERVER_CHROMEOS_H_ 44 #endif // ASH_DISPLAY_PROJECTING_OBSERVER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/display/output_configurator_animation.cc ('k') | ash/display/projecting_observer_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698