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

Side by Side Diff: ui/views/event_utils.h

Issue 245993005: views: move native event reposting back to MenuController as it's the only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win compile Created 6 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
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/event_utils_aura.cc » ('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 2013 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_EVENT_UTILS_H_
6 #define UI_VIEWS_EVENT_UTILS_H_
7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/views_export.h"
10
11 namespace ui {
12 class LocatedEvent;
13 }
14
15 namespace views {
16
17 // Reposts a located event natively. Returns false when |event| could not be
18 // reposted. |event| should be in screen coordinates. |window| is the target
19 // window that the event will be forwarded to. Only some events are supported.
20 // On Windows |window| can be NULL, in which case the event is forwarded to
21 // the HWND at the current location if it is on the same thread.
22 VIEWS_EXPORT bool RepostLocatedEvent(gfx::NativeWindow window,
23 const ui::LocatedEvent& event);
24
25 #if defined(OS_WIN)
26 // Reposts a located event to the HWND passed in.
27 VIEWS_EXPORT bool RepostLocatedEventWin(HWND window,
28 const ui::LocatedEvent& event);
29 #endif
30
31 } // namespace views
32
33 #endif // UI_VIEWS_EVENT_UTILS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/event_utils_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698