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

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: . 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/platform_window/platform_window.gyp ('k') | ui/platform_window/platform_window_export.h » ('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 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 // Note that |new_bounds| is in physical screen coordinates.
32 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0;
33
34 // Note that |damaged_region| is in the platform-window's coordinates, in
35 // physical pixels.
36 virtual void OnDamageRect(const gfx::Rect& damaged_region) = 0;
37
38 virtual void DispatchEvent(Event* event) = 0;
39
40 virtual void OnCloseRequest() = 0;
41 virtual void OnClosed() = 0;
42
43 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0;
44
45 virtual void OnLostCapture() = 0;
46
47 virtual void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) = 0;
48 };
49
50 } // namespace ui
51
52 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/platform_window/platform_window.gyp ('k') | ui/platform_window/platform_window_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698