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

Side by Side Diff: content/browser/browser_main_loop.h

Issue 1758823004: Screen.orientation lock API implementation for Windows8 and later. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing Created 4 years, 9 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 | content/browser/browser_main_loop.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 (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 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 6 #define CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class MediaStreamManager; 64 class MediaStreamManager;
65 class MojoShellContext; 65 class MojoShellContext;
66 class ResourceDispatcherHostImpl; 66 class ResourceDispatcherHostImpl;
67 class SpeechRecognitionManagerImpl; 67 class SpeechRecognitionManagerImpl;
68 class StartupTaskRunner; 68 class StartupTaskRunner;
69 class TimeZoneMonitor; 69 class TimeZoneMonitor;
70 struct MainFunctionParams; 70 struct MainFunctionParams;
71 71
72 #if defined(OS_ANDROID) 72 #if defined(OS_ANDROID)
73 class ScreenOrientationDelegate; 73 class ScreenOrientationDelegate;
74 #elif defined(OS_WIN)
75 class ScreenOrientationDelegate;
74 #endif 76 #endif
75 77
76 // Implements the main browser loop stages called from BrowserMainRunner. 78 // Implements the main browser loop stages called from BrowserMainRunner.
77 // See comments in browser_main_parts.h for additional info. 79 // See comments in browser_main_parts.h for additional info.
78 class CONTENT_EXPORT BrowserMainLoop { 80 class CONTENT_EXPORT BrowserMainLoop {
79 public: 81 public:
80 // Returns the current instance. This is used to get access to the getters 82 // Returns the current instance. This is used to get access to the getters
81 // that return objects which are owned by this class. 83 // that return objects which are owned by this class.
82 static BrowserMainLoop* GetInstance(); 84 static BrowserMainLoop* GetInstance();
83 85
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_ptr<base::PowerMonitor> power_monitor_; 194 scoped_ptr<base::PowerMonitor> power_monitor_;
193 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_; 195 scoped_ptr<base::HighResolutionTimerManager> hi_res_timer_manager_;
194 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; 196 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_;
195 197
196 // Per-process listener for online state changes. 198 // Per-process listener for online state changes.
197 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_; 199 scoped_ptr<BrowserOnlineStateObserver> online_state_observer_;
198 200
199 scoped_ptr<base::trace_event::TraceEventSystemStatsMonitor> 201 scoped_ptr<base::trace_event::TraceEventSystemStatsMonitor>
200 system_stats_monitor_; 202 system_stats_monitor_;
201 203
204 #if defined(OS_WIN)
205 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
206 #endif
207
202 #if defined(OS_ANDROID) 208 #if defined(OS_ANDROID)
203 // Android implementation of ScreenOrientationDelegate 209 // Android implementation of ScreenOrientationDelegate
204 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_; 210 scoped_ptr<ScreenOrientationDelegate> screen_orientation_delegate_;
205 #endif 211 #endif
206 212
207 scoped_ptr<MemoryObserver> memory_observer_; 213 scoped_ptr<MemoryObserver> memory_observer_;
208 214
209 // Members initialized in |InitStartupTracingForDuration()| ------------------ 215 // Members initialized in |InitStartupTracingForDuration()| ------------------
210 base::FilePath startup_trace_file_; 216 base::FilePath startup_trace_file_;
211 217
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 scoped_ptr<TimeZoneMonitor> time_zone_monitor_; 270 scoped_ptr<TimeZoneMonitor> time_zone_monitor_;
265 271
266 // DO NOT add members here. Add them to the right categories above. 272 // DO NOT add members here. Add them to the right categories above.
267 273
268 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop); 274 DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
269 }; 275 };
270 276
271 } // namespace content 277 } // namespace content
272 278
273 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_ 279 #endif // CONTENT_BROWSER_BROWSER_MAIN_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698