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

Side by Side Diff: views/widget/native_widget_delegate.h

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional code consolidation, move base defs, nix MakeMSG, TooltipManager cleanup, etc. Created 9 years, 8 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 namespace gfx { 9 namespace gfx {
10 class Canvas; 10 class Canvas;
(...skipping 22 matching lines...) Expand all
33 33
34 // Called when the NativeWidget changed size to |new_size|. 34 // Called when the NativeWidget changed size to |new_size|.
35 virtual void OnSizeChanged(const gfx::Size& new_size) = 0; 35 virtual void OnSizeChanged(const gfx::Size& new_size) = 0;
36 36
37 // Returns true if the delegate has a FocusManager. 37 // Returns true if the delegate has a FocusManager.
38 virtual bool HasFocusManager() const = 0; 38 virtual bool HasFocusManager() const = 0;
39 39
40 // Paints the rootview in the canvas. This will also refresh the compositor 40 // Paints the rootview in the canvas. This will also refresh the compositor
41 // tree if necessary when accelerated painting is enabled. 41 // tree if necessary when accelerated painting is enabled.
42 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0; 42 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0;
43
44 // MouseEvent handlers.
45 virtual bool OnMouseEvent(const MouseEvent& event) = 0;
46 virtual void OnMouseCaptureLost() = 0;
43 }; 47 };
44 48
45 } // namespace internal 49 } // namespace internal
46 } // namespace views 50 } // namespace views
47 51
48 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 52 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698