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

Side by Side Diff: ui/views/widget/native_widget_listener.h

Issue 6286013: V2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/views/widget/native_widget.h ('k') | ui/views/widget/native_widget_views.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_VIEWS_WIDGET_NATIVE_WIDGET_LISTENER_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_LISTENER_H_
7
8 namespace gfx {
9 class Canvas;
10 class Point;
11 class Size;
12 }
13
14 namespace ui {
15 class KeyEvent;
16 class MouseEvent;
17 class MouseWheelEvent;
18
19 namespace internal {
20
21 ////////////////////////////////////////////////////////////////////////////////
22 // NativeWidgetListener interface
23 //
24 // An interface implemented by the Widget that handles events sent from a
25 // NativeWidget implementation.
26 //
27 class NativeWidgetListener {
28 public:
29 virtual ~NativeWidgetListener() {}
30
31 virtual void OnClose() = 0;
32
33 virtual void OnDestroy() = 0;
34 virtual void OnDisplayChanged() = 0;
35
36 virtual bool OnKeyEvent(const KeyEvent& event) = 0;
37
38 virtual void OnMouseCaptureLost() = 0;
39
40 virtual bool OnMouseEvent(const MouseEvent& event) = 0;
41 virtual bool OnMouseWheelEvent(const MouseWheelEvent& event) = 0;
42
43 virtual void OnNativeWidgetCreated() = 0;
44
45 virtual void OnPaint(gfx::Canvas* canvas) = 0;
46 virtual void OnSizeChanged(const gfx::Size& size) = 0;
47 virtual void OnWorkAreaChanged() = 0;
48 };
49
50 } // namespace internal
51 } // namespace ui
52
53 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_LISTENER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget.h ('k') | ui/views/widget/native_widget_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698