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

Unified Diff: ui/window/platform_window_delegate.h

Issue 378003003: ui/window: Add platform windowing component (Closed) 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/window/platform_window.h ('k') | ui/window/window.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/window/platform_window_delegate.h
diff --git a/ui/window/platform_window_delegate.h b/ui/window/platform_window_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..8e00f9d3935a8106787e8ddd565a471d86a5640b
--- /dev/null
+++ b/ui/window/platform_window_delegate.h
@@ -0,0 +1,36 @@
+// Copyright (c) 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_OZONE_PUBLIC_PLATFORM_WINDOW_DELEGATE_H_
+#define UI_OZONE_PUBLIC_PLATFORM_WINDOW_DELEGATE_H_
+
+#include "ui/events/platform/platform_event_dispatcher.h"
+#include "ui/window/window_export.h"
+
+namespace gfx {
+class Rect;
+}
+
+namespace ui {
+
+// Platform window delegate. See PlatformWindow.
+class WINDOW_EXPORT PlatformWindowDelegate
+ : public ui::PlatformEventDispatcher {
sadrul 2014/07/14 07:00:00 This requires the PlatformWindowDelegate to keep p
spang 2014/07/14 16:53:38 That sounds good. In fact, this CL actually did th
+ public:
+ PlatformWindowDelegate() {}
+ virtual ~PlatformWindowDelegate() {}
+
+ // Notify the delegate that the window bounds have changed.
+ virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0;
+
+ // Notify the delegate that the user has requested to close the window.
+ virtual void OnCloseRequest() = 0;
Ben Goodger (Google) 2014/07/11 18:15:15 If this really is a close request, this may need t
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PlatformWindowDelegate);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PUBLIC_PLATFORM_WINDOW_DELEGATE_H_
« no previous file with comments | « ui/window/platform_window.h ('k') | ui/window/window.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698