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_ |