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

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

Issue 6823055: Consolidate OnKeyEvent and InputMethod code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nix RootView from extension_input_api, revert mouse and touch event changes. 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 23 matching lines...) Expand all
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 43
44 // MouseEvent handlers. 44 // Mouse and key event handlers.
45 virtual bool OnKeyEvent(const KeyEvent& event) = 0;
45 virtual bool OnMouseEvent(const MouseEvent& event) = 0; 46 virtual bool OnMouseEvent(const MouseEvent& event) = 0;
46 virtual void OnMouseCaptureLost() = 0; 47 virtual void OnMouseCaptureLost() = 0;
47 }; 48 };
48 49
49 } // namespace internal 50 } // namespace internal
50 } // namespace views 51 } // namespace views
51 52
52 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 53 #endif // VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698