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

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

Issue 1536493002: Working proof of concept of select to speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drag across multiple objects Created 5 years 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
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/root_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // |point|, in client coordinates. 113 // |point|, in client coordinates.
114 virtual int GetNonClientComponent(const gfx::Point& point) = 0; 114 virtual int GetNonClientComponent(const gfx::Point& point) = 0;
115 115
116 // Mouse and key event handlers. 116 // Mouse and key event handlers.
117 virtual void OnKeyEvent(ui::KeyEvent* event) = 0; 117 virtual void OnKeyEvent(ui::KeyEvent* event) = 0;
118 virtual void OnMouseEvent(ui::MouseEvent* event) = 0; 118 virtual void OnMouseEvent(ui::MouseEvent* event) = 0;
119 virtual void OnMouseCaptureLost() = 0; 119 virtual void OnMouseCaptureLost() = 0;
120 120
121 virtual void OnScrollEvent(ui::ScrollEvent* event) = 0; 121 virtual void OnScrollEvent(ui::ScrollEvent* event) = 0;
122 virtual void OnGestureEvent(ui::GestureEvent* event) = 0; 122 virtual void OnGestureEvent(ui::GestureEvent* event) = 0;
123 virtual void OnAccessibilityMouseEvent(ui::MouseEvent* event) = 0;
123 124
124 // Runs the specified native command. Returns true if the command is handled. 125 // Runs the specified native command. Returns true if the command is handled.
125 virtual bool ExecuteCommand(int command_id) = 0; 126 virtual bool ExecuteCommand(int command_id) = 0;
126 127
127 // Returns the child Layers of the Widgets layer that were created by Views. 128 // Returns the child Layers of the Widgets layer that were created by Views.
128 virtual const std::vector<ui::Layer*>& GetRootLayers() = 0; 129 virtual const std::vector<ui::Layer*>& GetRootLayers() = 0;
129 130
130 // Returns true if window has a hit-test mask. 131 // Returns true if window has a hit-test mask.
131 virtual bool HasHitTestMask() const = 0; 132 virtual bool HasHitTestMask() const = 0;
132 133
(...skipping 10 matching lines...) Expand all
143 // later. Returns true if the initial focus has been set or the window should 144 // later. Returns true if the initial focus has been set or the window should
144 // not set the initial focus, or false if the caller should set the initial 145 // not set the initial focus, or false if the caller should set the initial
145 // focus (if any). 146 // focus (if any).
146 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; 147 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0;
147 }; 148 };
148 149
149 } // namespace internal 150 } // namespace internal
150 } // namespace views 151 } // namespace views
151 152
152 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 153 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698