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

Side by Side Diff: blimp/client/input/blimp_input_handler_wrapper.h

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 BLIMP_CLIENT_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ 5 #ifndef BLIMP_CLIENT_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_
6 #define BLIMP_CLIENT_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ 6 #define BLIMP_CLIENT_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "ui/events/blink/input_handler_proxy.h" 11 #include "ui/events/blink/input_handler_proxy.h"
12 #include "ui/events/blink/input_handler_proxy_client.h" 12 #include "ui/events/blink/input_handler_proxy_client.h"
13 13
14 namespace blimp { 14 namespace blimp {
15 namespace client {
16
15 class BlimpInputManager; 17 class BlimpInputManager;
16 18
17 // The BlimpInputHandlerWrapper isolates all input handling processing done on 19 // The BlimpInputHandlerWrapper isolates all input handling processing done on
18 // the compositor thread from the BlimpInputManager. It takes web input events 20 // the compositor thread from the BlimpInputManager. It takes web input events
19 // from the BlimpInputManager and sends them to the ui::InputHandlerProxy. 21 // from the BlimpInputManager and sends them to the ui::InputHandlerProxy.
20 // The class is created and lives on the compositor thread. 22 // The class is created and lives on the compositor thread.
21 class BlimpInputHandlerWrapper : public ui::InputHandlerProxyClient { 23 class BlimpInputHandlerWrapper : public ui::InputHandlerProxyClient {
22 public: 24 public:
23 BlimpInputHandlerWrapper( 25 BlimpInputHandlerWrapper(
24 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 26 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
(...skipping 30 matching lines...) Expand all
55 // Used to queue calls to the BlimpInputManager to be run on the main 57 // Used to queue calls to the BlimpInputManager to be run on the main
56 // thread. This ensures that any tasks queued are abandoned after the 58 // thread. This ensures that any tasks queued are abandoned after the
57 // BlimpInputManager is destroyed. 59 // BlimpInputManager is destroyed.
58 base::WeakPtr<BlimpInputManager> input_manager_weak_ptr_; 60 base::WeakPtr<BlimpInputManager> input_manager_weak_ptr_;
59 61
60 scoped_ptr<ui::InputHandlerProxy> input_handler_proxy_; 62 scoped_ptr<ui::InputHandlerProxy> input_handler_proxy_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(BlimpInputHandlerWrapper); 64 DISALLOW_COPY_AND_ASSIGN(BlimpInputHandlerWrapper);
63 }; 65 };
64 66
67 } // namespace client
65 } // namespace blimp 68 } // namespace blimp
66 69
67 #endif // BLIMP_CLIENT_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_ 70 #endif // BLIMP_CLIENT_INPUT_BLIMP_INPUT_HANDLER_WRAPPER_H_
OLDNEW
« no previous file with comments | « blimp/client/compositor/test/dummy_layer_driver.cc ('k') | blimp/client/input/blimp_input_handler_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698