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

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

Issue 275263002: [wip] ozonex: X11 backend for ozone. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 6 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.h ('k') | ui/platform_window/x11/DEPS » ('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 namespace gfx {
9 class Rect;
10 }
11
12 namespace ui {
13
14 class Event;
15
16 enum PlatformWindowState {
17 PLATFORM_WINDOW_STATE_UNKNOWN,
18 PLATFORM_WINDOW_STATE_MAXIMIZED,
19 PLATFORM_WINDOW_STATE_MINIMIZED,
20 PLATFORM_WINDOW_STATE_NORMAL,
21 PLATFORM_WINDOW_STATE_FULLSCREEN,
22 };
23
24 class PlatformWindowDelegate {
25 public:
26 virtual ~PlatformWindowDelegate() {}
27
28 virtual void OnBoundsChanged(const gfx::Rect& new_bounds) = 0;
29
30 virtual void OnDamageRect(const gfx::Rect& damaged_region) = 0;
31
32 virtual void DispatchEvent(ui::Event* event) = 0;
33
34 virtual void OnCloseRequest() = 0;
35 virtual void OnClosed() = 0;
36
37 virtual void OnWindowStateChanged(PlatformWindowState new_state) = 0;
38
39 virtual void OnLostCapture() = 0;
40 };
41
42 } // namespace ui
43
44 #endif // UI_PLATFORM_WINDOW_PLATFORM_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/platform_window/platform_window.h ('k') | ui/platform_window/x11/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698