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

Unified Diff: ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.h

Issue 648733003: Implement ScreenOrientationDelegate on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.h
diff --git a/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.h b/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.h
new file mode 100644
index 0000000000000000000000000000000000000000..8353c253ca95ee7b84269f46d95f47895613ae75
--- /dev/null
+++ b/ash/system/chromeos/screen_orientation/screen_orientation_delegate_ash.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_CHROMEOS_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_ASH_H_
+#define ASH_SYSTEM_CHROMEOS_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_ASH_H_
+
+#include "base/macros.h"
+#include "content/public/browser/screen_orientation_delegate.h"
+#include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace ash {
+
+// Implements ChromeOS specific functionality for ScreenOrientationProvider.
+class ScreenOrientationDelegateAsh : public content::ScreenOrientationDelegate {
+ public:
+ ScreenOrientationDelegateAsh();
+ virtual ~ScreenOrientationDelegateAsh();
+
+ // content::ScreenOrientationDelegate:
+ virtual bool FullScreenRequired(content::WebContents* web_contents) override;
+ virtual void Lock(
+ blink::WebScreenOrientationLockType lock_orientation) override;
+ virtual bool ScreenOrientationProviderSupported() override;
+ virtual void Unlock() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegateAsh);
+};
+
+} // namespace ash
+
+#endif // ASH_SYSTEM_CHROMEOS_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_ASH_H_

Powered by Google App Engine
This is Rietveld 408576698