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

Unified Diff: components/view_manager/native_viewport/platform_viewport.h

Issue 1216113004: view_manager: Remove PlatformViewport abstraction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 5 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: components/view_manager/native_viewport/platform_viewport.h
diff --git a/components/view_manager/native_viewport/platform_viewport.h b/components/view_manager/native_viewport/platform_viewport.h
deleted file mode 100644
index f57adb94db14fbdab099b638df25621a2b887105..0000000000000000000000000000000000000000
--- a/components/view_manager/native_viewport/platform_viewport.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2013 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 COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
-#define COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/mojo/events/input_events.mojom.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace native_viewport {
-
-// Encapsulation of platform-specific Viewport.
-class PlatformViewport {
- public:
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
- float device_pixel_ratio) = 0;
- virtual void OnAcceleratedWidgetDestroyed() = 0;
- virtual void OnDestroyed() = 0;
- virtual void OnEvent(mojo::EventPtr event) = 0;
- virtual void OnMetricsChanged(const gfx::Size& size,
- float device_scale_factor) = 0;
- };
-
- virtual ~PlatformViewport() {}
-
- virtual void Init(const gfx::Rect& bounds) = 0;
- virtual void Show() = 0;
- virtual void Hide() = 0;
- virtual void Close() = 0;
- virtual gfx::Size GetSize() = 0;
- virtual void SetBounds(const gfx::Rect& bounds) = 0;
-
- static scoped_ptr<PlatformViewport> Create(Delegate* delegate, bool headless);
-};
-
-} // namespace native_viewport
-
-#endif // COMPONENTS_VIEW_MANAGER_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_H_
« no previous file with comments | « components/view_manager/native_viewport/BUILD.gn ('k') | components/view_manager/native_viewport/platform_viewport_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698