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

Side by Side Diff: ui/platform_window/platform_window_delegate.h

Issue 391583002: ui/platform_window: Introduce PlatformWindow for windowing primitives. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-nits 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
OLDNEW
(Empty)
1 // Copyright 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_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
6 #define UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/platform_window/platform_window_export.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace ui {
16
17 class Event;
18
19 enum PlatformWindowState {
20 PLATFORM_WINDOW_STATE_UNKNOWN,
21 PLATFORM_WINDOW_STATE_MAXIMIZED,
22 PLATFORM_WINDOW_STATE_MINIMIZED,
23 PLATFORM_WINDOW_STATE_NORMAL,
24 PLATFORM_WINDOW_STATE_FULLSCREEN,
25 };
26
27 class PLATFORM_WINDOW_EXPORT PlatformWindowDelegate {
28 public:
29 virtual ~PlatformWindowDelegate() {}
30
31 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0;
32
33 virtual void OnDamageRect(const gfx::Rect& damaged_region) = 0;
34
35 virtual void DispatchEvent(Event* event) = 0;
36
37 virtual void OnCloseRequest() = 0;
sadrul 2014/07/14 07:20:05 In response to https://codereview.chromium.org/378
38 virtual void OnClosed() = 0;
39
40 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0;
41
42 virtual void OnLostCapture() = 0;
43
44 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0;
45 };
46
47 } // namespace ui
48
49 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698