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

Side by Side Diff: views/focus/accelerator_handler.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 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_FOCUS_ACCELERATOR_HANDLER_H_ 5 #ifndef VIEWS_FOCUS_ACCELERATOR_HANDLER_H_
6 #define VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ 6 #define VIEWS_FOCUS_ACCELERATOR_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 18 matching lines...) Expand all
29 class AcceleratorHandler : public MessageLoopForUI::Dispatcher { 29 class AcceleratorHandler : public MessageLoopForUI::Dispatcher {
30 public: 30 public:
31 AcceleratorHandler(); 31 AcceleratorHandler();
32 // Dispatcher method. This returns true if an accelerator was processed by the 32 // Dispatcher method. This returns true if an accelerator was processed by the
33 // focus manager 33 // focus manager
34 #if defined(OS_WIN) 34 #if defined(OS_WIN)
35 virtual bool Dispatch(const MSG& msg); 35 virtual bool Dispatch(const MSG& msg);
36 #else 36 #else
37 virtual bool Dispatch(GdkEvent* event); 37 virtual bool Dispatch(GdkEvent* event);
38 #if defined(TOUCH_UI) 38 #if defined(TOUCH_UI)
39 virtual bool Dispatch(XEvent* xev); 39 virtual MessagePumpGlibXDispatcher::DispatchStatus Dispatch(XEvent* xev);
rjkroege 2010/11/23 23:38:54 how does this get this here definition-wise?
sadrul 2010/11/24 00:55:21 From base/message_loop.h, which includes base/mess
40 #endif 40 #endif
41 #endif 41 #endif
42 42
43 private: 43 private:
44 #if defined(OS_WIN) 44 #if defined(OS_WIN)
45 // The keys currently pressed and consumed by the FocusManager. 45 // The keys currently pressed and consumed by the FocusManager.
46 std::set<WPARAM> pressed_keys_; 46 std::set<WPARAM> pressed_keys_;
47 #endif 47 #endif
48 48
49 DISALLOW_COPY_AND_ASSIGN(AcceleratorHandler); 49 DISALLOW_COPY_AND_ASSIGN(AcceleratorHandler);
50 }; 50 };
51 51
52 } // namespace views 52 } // namespace views
53 53
54 #endif // VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ 54 #endif // VIEWS_FOCUS_ACCELERATOR_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698