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

Unified Diff: ui/platform_window/platform_window_delegate.h

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
« no previous file with comments | « ui/platform_window/platform_window.gyp ('k') | ui/platform_window/platform_window_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/platform_window_delegate.h
diff --git a/ui/platform_window/platform_window_delegate.h b/ui/platform_window/platform_window_delegate.h
deleted file mode 100644
index b2152757bfc1979f357f4cd090da259e32336981..0000000000000000000000000000000000000000
--- a/ui/platform_window/platform_window_delegate.h
+++ /dev/null
@@ -1,53 +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 UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
-#define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
-
-#include "ui/gfx/native_widget_types.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ui {
-
-class Event;
-
-enum PlatformWindowState {
- PLATFORM_WINDOW_STATE_UNKNOWN,
- PLATFORM_WINDOW_STATE_MAXIMIZED,
- PLATFORM_WINDOW_STATE_MINIMIZED,
- PLATFORM_WINDOW_STATE_NORMAL,
- PLATFORM_WINDOW_STATE_FULLSCREEN,
-};
-
-class PlatformWindowDelegate {
- public:
- virtual ~PlatformWindowDelegate() {}
-
- // Note that |new_bounds| is in physical screen coordinates.
- virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0;
-
- // Note that |damaged_region| is in the platform-window's coordinates, in
- // physical pixels.
- virtual void OnDamageRect(const gfx::Rect& damaged_region) = 0;
-
- virtual void DispatchEvent(Event* event) = 0;
-
- virtual void OnCloseRequest() = 0;
- virtual void OnClosed() = 0;
-
- virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0;
-
- virtual void OnLostCapture() = 0;
-
- virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0;
-
- virtual void OnActivationChanged(bool active) = 0;
-};
-
-} // namespace ui
-
-#endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
« no previous file with comments | « ui/platform_window/platform_window.gyp ('k') | ui/platform_window/platform_window_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698