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

Unified Diff: content/browser/screen_orientation/screen_orientation.h

Issue 2685513002: [For trybots test] [ScreenOrientation] Hide ScreenOrientationProvider inside WebContentsImpl. (Closed)
Patch Set: Fix android bots Created 3 years, 10 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: content/browser/screen_orientation/screen_orientation.h
diff --git a/content/browser/screen_orientation/screen_orientation.h b/content/browser/screen_orientation/screen_orientation.h
deleted file mode 100644
index af3d84e8120aae435468cedb18d5a92d52c4da5e..0000000000000000000000000000000000000000
--- a/content/browser/screen_orientation/screen_orientation.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 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_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_H
-#define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_H
-
-#include "base/memory/weak_ptr.h"
-#include "content/public/browser/web_contents_binding_set.h"
-#include "content/public/browser/web_contents_observer.h"
-#include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h"
-
-namespace content {
-
-class ScreenOrientationProvider;
-class WebContents;
-
-class ScreenOrientation : public device::mojom::ScreenOrientation,
- public WebContentsObserver {
- public:
- explicit ScreenOrientation(WebContents* web_contents);
- ~ScreenOrientation() override;
-
- ScreenOrientationProvider* GetScreenOrientationProvider();
-
- private:
- // ScreenOrientation:
- void LockOrientation(blink::WebScreenOrientationLockType orientation,
- const LockOrientationCallback& callback) override;
- void UnlockOrientation() override;
-
- // WebContentsObserver:
- void DidFinishNavigation(NavigationHandle* navigation_handle) override;
-
- std::unique_ptr<ScreenOrientationProvider> provider_;
- WebContentsFrameBindingSet<device::mojom::ScreenOrientation> bindings_;
- base::WeakPtrFactory<ScreenOrientation> weak_factory_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_H
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.cc ('k') | content/browser/screen_orientation/screen_orientation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698