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

Side by Side Diff: views/controls/menu/nested_dispatcher_gtk.h

Issue 5110011: A non-GTK version of menus for touchui. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix compile for touch on chromeos Created 10 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 | Annotate | Revision Log
« no previous file with comments | « views/controls/menu/native_menu_x.cc ('k') | views/controls/menu/nested_dispatcher_gtk.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ 5 #ifndef VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_
6 #define VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ 6 #define VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // Tells the nested dispatcher that creator has been destroyed. 34 // Tells the nested dispatcher that creator has been destroyed.
35 void CreatorDestroyed(); 35 void CreatorDestroyed();
36 36
37 private: 37 private:
38 virtual ~NestedDispatcherGtk() {} 38 virtual ~NestedDispatcherGtk() {}
39 39
40 // Overriden from MessageLoopForUI::Dispatcher: 40 // Overriden from MessageLoopForUI::Dispatcher:
41 virtual bool Dispatch(GdkEvent* event); 41 virtual bool Dispatch(GdkEvent* event);
42 42
43 #if defined(TOUCH_UI) 43 #if defined(TOUCH_UI)
44 virtual bool Dispatch(XEvent* xevent); 44 virtual base::MessagePumpGlibXDispatcher::DispatchStatus Dispatch(
45 XEvent* xevent);
45 #endif 46 #endif
46 47
47 // Creator of the nested loop. 48 // Creator of the nested loop.
48 MessageLoopForUI::Dispatcher* creator_; 49 MessageLoopForUI::Dispatcher* creator_;
49 50
50 // True to allow nested task in the message loop. 51 // True to allow nested task in the message loop.
51 bool allow_nested_task_; 52 bool allow_nested_task_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherGtk); 54 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherGtk);
54 }; 55 };
55 56
56 } // namespace views 57 } // namespace views
57 58
58 #endif // VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ 59 #endif // VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_
OLDNEW
« no previous file with comments | « views/controls/menu/native_menu_x.cc ('k') | views/controls/menu/nested_dispatcher_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698