Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_OZONE_PUBLIC_PLATFORM_WINDOW_DELEGATE_H_ | |
| 6 #define UI_OZONE_PUBLIC_PLATFORM_WINDOW_DELEGATE_H_ | |
| 7 | |
| 8 #include "ui/events/platform/platform_event_dispatcher.h" | |
| 9 #include "ui/window/window_export.h" | |
| 10 | |
| 11 namespace gfx { | |
| 12 class Rect; | |
| 13 } | |
| 14 | |
| 15 namespace ui { | |
| 16 | |
| 17 // Platform window delegate. See PlatformWindow. | |
| 18 class WINDOW_EXPORT PlatformWindowDelegate | |
| 19 : 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
| |
| 20 public: | |
| 21 PlatformWindowDelegate() {} | |
| 22 virtual ~PlatformWindowDelegate() {} | |
| 23 | |
| 24 // Notify the delegate that the window bounds have changed. | |
| 25 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0; | |
| 26 | |
| 27 // Notify the delegate that the user has requested to close the window. | |
| 28 virtual void OnCloseRequest() = 0; | |
|
Ben Goodger (Google)
2014/07/11 18:15:15
If this really is a close request, this may need t
| |
| 29 | |
| 30 private: | |
| 31 DISALLOW_COPY_AND_ASSIGN(PlatformWindowDelegate); | |
| 32 }; | |
| 33 | |
| 34 } // namespace ui | |
| 35 | |
| 36 #endif // UI_OZONE_PUBLIC_PLATFORM_WINDOW_DELEGATE_H_ | |
| OLD | NEW |