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

Unified Diff: content/public/browser/screen_orientation_dispatcher_host.h

Issue 2391883006: Mojo-ify implementation of screen orientation locking/unlocking. (Closed)
Patch Set: clup Created 4 years, 1 month 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
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/screen_orientation_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/screen_orientation_dispatcher_host.h
diff --git a/content/public/browser/screen_orientation_dispatcher_host.h b/content/public/browser/screen_orientation_dispatcher_host.h
deleted file mode 100644
index f91d6bc8f88a6cf2117a1aefa6b7d6cbb4fd5f2e..0000000000000000000000000000000000000000
--- a/content/public/browser/screen_orientation_dispatcher_host.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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 CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_
-#define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_
-
-#include "content/common/content_export.h"
-#include "third_party/WebKit/public/platform/modules/screen_orientation/WebLockOrientationError.h"
-
-namespace content {
-
-// ScreenOrientationDispatcherHost receives lock and unlock requests from the
-// RenderFrames and dispatch them to the ScreenOrientationProvider. It also
-// make sure that the right RenderFrame get replied for each lock request.
-class CONTENT_EXPORT ScreenOrientationDispatcherHost {
- public:
- virtual ~ScreenOrientationDispatcherHost() {}
-
- // Notifies that the lock with the given |request_id| has succeeded.
- // The renderer process will be notified that the lock succeeded only if
- // |request_id| matches the current lock information.
- virtual void NotifyLockSuccess(int request_id) = 0;
-
- // Notifies that the lock with the given |request_id| has failed.
- // The renderer process will be notified that the lock succeeded only if
- // |request_id| matches the current lock information.
- virtual void NotifyLockError(int request_id,
- blink::WebLockOrientationError error) = 0;
-
- virtual void OnOrientationChange() = 0;
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DISPATCHER_HOST_H_
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/screen_orientation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698