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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/window/platform_window.h ('k') | ui/window/window.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« 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