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

Side by Side Diff: chrome/renderer/pepper_devices.cc

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « chrome/renderer/blocked_plugin.cc ('k') | chrome/renderer/pepper_devices_browsertest.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 #include "chrome/renderer/pepper_devices.h" 5 #include "chrome/renderer/pepper_devices.h"
6 6
7 #include "chrome/common/render_messages_params.h" 7 #include "chrome/common/render_messages_params.h"
8 #include "chrome/renderer/render_thread.h" 8 #include "chrome/renderer/render_thread.h"
9 #include "chrome/renderer/webplugin_delegate_pepper.h" 9 #include "chrome/renderer/webplugin_delegate_pepper.h"
10 #include "skia/ext/platform_canvas.h" 10 #include "skia/ext/platform_canvas.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "webkit/plugins/npapi/plugin_instance.h" 12 #include "webkit/glue/plugins/plugin_instance.h"
13 #include "webkit/plugins/npapi/webplugin.h" 13 #include "webkit/glue/plugins/webplugin.h"
14 14
15 namespace { 15 namespace {
16 16
17 const uint32 kBytesPerPixel = 4; // Only 8888 RGBA for now. 17 const uint32 kBytesPerPixel = 4; // Only 8888 RGBA for now.
18 18
19 } // namespace 19 } // namespace
20 20
21 int Graphics2DDeviceContext::next_buffer_id_ = 0; 21 int Graphics2DDeviceContext::next_buffer_id_ = 0;
22 22
23 struct Graphics2DDeviceContext::FlushCallbackData { 23 struct Graphics2DDeviceContext::FlushCallbackData {
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 } 294 }
295 295
296 void AudioDeviceContext::Run() { 296 void AudioDeviceContext::Run() {
297 int pending_data; 297 int pending_data;
298 while (sizeof(pending_data) == socket_->Receive(&pending_data, 298 while (sizeof(pending_data) == socket_->Receive(&pending_data,
299 sizeof(pending_data)) && 299 sizeof(pending_data)) &&
300 pending_data >= 0) { 300 pending_data >= 0) {
301 FireAudioCallback(); 301 FireAudioCallback();
302 } 302 }
303 } 303 }
OLDNEW
« no previous file with comments | « chrome/renderer/blocked_plugin.cc ('k') | chrome/renderer/pepper_devices_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698