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

Side by Side Diff: content/renderer/gpu/compositor_thread.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 | « content/renderer/gpu/compositor_thread.h ('k') | content/renderer/idle_user_detector.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 #include "content/renderer/gpu/compositor_thread.h" 5 #include "content/renderer/gpu/compositor_thread.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "content/renderer/gpu/input_event_filter.h" 9 #include "content/renderer/gpu/input_event_filter.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebActiveWheelFlingPa rameters.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebActiveWheelFlingPa rameters.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositorInputHan dlerClient.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositorInputHan dlerClient.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositorInputHan dler.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositorInputHan dler.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
14 14
15 using WebKit::WebCompositorInputHandler; 15 using WebKit::WebCompositorInputHandler;
16 using WebKit::WebInputEvent; 16 using WebKit::WebInputEvent;
17 17
18 namespace content {
19
18 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------
19 21
20 class CompositorThread::InputHandlerWrapper 22 class CompositorThread::InputHandlerWrapper
21 : public WebKit::WebCompositorInputHandlerClient, 23 : public WebKit::WebCompositorInputHandlerClient,
22 public base::RefCountedThreadSafe<InputHandlerWrapper> { 24 public base::RefCountedThreadSafe<InputHandlerWrapper> {
23 public: 25 public:
24 InputHandlerWrapper(CompositorThread* compositor_thread, 26 InputHandlerWrapper(CompositorThread* compositor_thread,
25 int routing_id, 27 int routing_id,
26 WebKit::WebCompositorInputHandler* input_handler, 28 WebKit::WebCompositorInputHandler* input_handler,
27 scoped_refptr<base::MessageLoopProxy> main_loop, 29 scoped_refptr<base::MessageLoopProxy> main_loop,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 InputHandlerMap::iterator it = input_handlers_.find(routing_id); 158 InputHandlerMap::iterator it = input_handlers_.find(routing_id);
157 if (it == input_handlers_.end()) { 159 if (it == input_handlers_.end()) {
158 TRACE_EVENT0("CompositorThread::HandleInputEvent", "NoInputHandlerFound"); 160 TRACE_EVENT0("CompositorThread::HandleInputEvent", "NoInputHandlerFound");
159 // Oops, we no longer have an interested input handler.. 161 // Oops, we no longer have an interested input handler..
160 filter_->DidNotHandleInputEvent(true); 162 filter_->DidNotHandleInputEvent(true);
161 return; 163 return;
162 } 164 }
163 165
164 it->second->input_handler()->handleInputEvent(*input_event); 166 it->second->input_handler()->handleInputEvent(*input_event);
165 } 167 }
168
169 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_thread.h ('k') | content/renderer/idle_user_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698