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

Side by Side Diff: content/browser/screen_orientation/screen_orientation_delegate_win.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: 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_
6 #define ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_
7
8 #include "content/public/browser/screen_orientation_delegate.h" 5 #include "content/public/browser/screen_orientation_delegate.h"
9 6
10 #include "base/macros.h" 7 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_WIN_H_
8 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_WIN_H_
Avi (use Gerrit) 2016/03/02 19:25:12 Include guards have to be the first thing in the f
aleksandar.stojiljkovic 2016/03/02 19:47:20 Done.
11 9
12 namespace ash { 10 namespace content {
13 11
14 class ScreenOrientationDelegateChromeos 12 class ScreenOrientationDelegateWin
15 : public content::ScreenOrientationDelegate { 13 : public content::ScreenOrientationDelegate {
16 public: 14 public:
17 ScreenOrientationDelegateChromeos(); 15 ScreenOrientationDelegateWin();
18 ~ScreenOrientationDelegateChromeos() override; 16 ~ScreenOrientationDelegateWin() override;
19 17
20 private: 18 private:
21 // content::ScreenOrientationDelegate: 19 // content::ScreenOrientationDelegate:
22 bool FullScreenRequired(content::WebContents* web_contents) override; 20 bool FullScreenRequired(content::WebContents* web_contents) override;
23 void Lock(content::WebContents* web_contents, 21 void Lock(content::WebContents* web_contents,
24 blink::WebScreenOrientationLockType lock_orientation) override; 22 blink::WebScreenOrientationLockType lock_orientation) override;
25 bool ScreenOrientationProviderSupported() override; 23 bool ScreenOrientationProviderSupported() override;
26 void Unlock(content::WebContents* web_contents) override; 24 void Unlock(content::WebContents* web_contents) override;
27 25
28 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegateChromeos); 26 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegateWin);
29 }; 27 };
30 28
31 } // namespace ash 29 } // namespace content
32 30
33 #endif // ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ 31 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698