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

Side by Side Diff: content/public/browser/screen_orientation_provider.h

Issue 637183002: Replace FINAL and OVERRIDE with their C++11 counterparts in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 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 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ 6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // Inform about a screen orientation update. It is called to let the provider 35 // Inform about a screen orientation update. It is called to let the provider
36 // know if a lock has been resolved. 36 // know if a lock has been resolved.
37 void OnOrientationChange(); 37 void OnOrientationChange();
38 38
39 // Provide a delegate which creates delegates for platform implementations. 39 // Provide a delegate which creates delegates for platform implementations.
40 // The delegate is not owned by ScreenOrientationProvider. 40 // The delegate is not owned by ScreenOrientationProvider.
41 static void SetDelegate(ScreenOrientationDelegate* delegate_); 41 static void SetDelegate(ScreenOrientationDelegate* delegate_);
42 42
43 // WebContentsObserver 43 // WebContentsObserver
44 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) OVERRIDE; 44 virtual void DidToggleFullscreenModeForTab(bool entered_fullscreen) override;
45 45
46 private: 46 private:
47 struct LockInformation { 47 struct LockInformation {
48 LockInformation(int request_id, blink::WebScreenOrientationLockType lock); 48 LockInformation(int request_id, blink::WebScreenOrientationLockType lock);
49 int request_id; 49 int request_id;
50 blink::WebScreenOrientationLockType lock; 50 blink::WebScreenOrientationLockType lock;
51 }; 51 };
52 52
53 // Returns the lock type that should be associated with 'natural' lock. 53 // Returns the lock type that should be associated with 'natural' lock.
54 // Returns WebScreenOrientationLockDefault if the natural lock type can't be 54 // Returns WebScreenOrientationLockDefault if the natural lock type can't be
(...skipping 16 matching lines...) Expand all
71 // Locks that require orientation changes are not completed until 71 // Locks that require orientation changes are not completed until
72 // OnOrientationChange. 72 // OnOrientationChange.
73 scoped_ptr<LockInformation> pending_lock_; 73 scoped_ptr<LockInformation> pending_lock_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider); 75 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationProvider);
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ 80 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/common/sandbox_mac_system_access_unittest.mm ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698