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

Side by Side Diff: content/renderer/device_orientation_dispatcher.cc

Issue 6703003: Move a bunch of html5 renderer code to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
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 #include "chrome/renderer/device_orientation_dispatcher.h" 5 #include "content/renderer/device_orientation_dispatcher.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/common/render_messages_params.h" 8 #include "chrome/common/render_messages_params.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation. h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientation. h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC ontroller.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC ontroller.h"
11 11
12 DeviceOrientationDispatcher::DeviceOrientationDispatcher( 12 DeviceOrientationDispatcher::DeviceOrientationDispatcher(
13 RenderView* render_view) 13 RenderView* render_view)
14 : RenderViewObserver(render_view), 14 : RenderViewObserver(render_view),
15 controller_(NULL), 15 controller_(NULL),
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 last_orientation_.reset(new WebKit::WebDeviceOrientation(p.can_provide_alpha, 83 last_orientation_.reset(new WebKit::WebDeviceOrientation(p.can_provide_alpha,
84 p.alpha, 84 p.alpha,
85 p.can_provide_beta, 85 p.can_provide_beta,
86 p.beta, 86 p.beta,
87 p.can_provide_gamma, 87 p.can_provide_gamma,
88 p.gamma)); 88 p.gamma));
89 89
90 controller_->didChangeDeviceOrientation(*last_orientation_); 90 controller_->didChangeDeviceOrientation(*last_orientation_);
91 } 91 }
OLDNEW
« no previous file with comments | « content/renderer/device_orientation_dispatcher.h ('k') | content/renderer/geolocation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698