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

Side by Side Diff: chrome/renderer/pepper/pepper_pdf_host.cc

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/pepper_pdf_host.h" 5 #include "chrome/renderer/pepper/pepper_pdf_host.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "chrome/renderer/printing/print_web_view_helper.h" 9 #include "chrome/renderer/printing/print_web_view_helper.h"
10 #include "content/public/common/referrer.h" 10 #include "content/public/common/referrer.h"
(...skipping 16 matching lines...) Expand all
27 #include "skia/ext/platform_canvas.h" 27 #include "skia/ext/platform_canvas.h"
28 #include "third_party/WebKit/public/web/WebDocument.h" 28 #include "third_party/WebKit/public/web/WebDocument.h"
29 #include "third_party/WebKit/public/web/WebElement.h" 29 #include "third_party/WebKit/public/web/WebElement.h"
30 #include "third_party/WebKit/public/web/WebLocalFrame.h" 30 #include "third_party/WebKit/public/web/WebLocalFrame.h"
31 #include "third_party/WebKit/public/web/WebPluginContainer.h" 31 #include "third_party/WebKit/public/web/WebPluginContainer.h"
32 #include "third_party/WebKit/public/web/WebView.h" 32 #include "third_party/WebKit/public/web/WebView.h"
33 #include "third_party/skia/include/core/SkBitmap.h" 33 #include "third_party/skia/include/core/SkBitmap.h"
34 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
35 #include "ui/base/layout.h" 35 #include "ui/base/layout.h"
36 #include "ui/base/resource/resource_bundle.h" 36 #include "ui/base/resource/resource_bundle.h"
37 #include "ui/gfx/geometry/point.h"
37 #include "ui/gfx/image/image_skia.h" 38 #include "ui/gfx/image/image_skia.h"
38 #include "ui/gfx/image/image_skia_rep.h" 39 #include "ui/gfx/image/image_skia_rep.h"
39 #include "ui/gfx/point.h"
40 40
41 namespace { 41 namespace {
42 42
43 struct ResourceImageInfo { 43 struct ResourceImageInfo {
44 PP_ResourceImage pp_id; 44 PP_ResourceImage pp_id;
45 int res_id; 45 int res_id;
46 }; 46 };
47 47
48 const ResourceImageInfo kResourceImageMap[] = { 48 const ResourceImageInfo kResourceImageMap[] = {
49 {PP_RESOURCEIMAGE_PDF_BUTTON_FTP, IDR_PDF_BUTTON_FTP}, 49 {PP_RESOURCEIMAGE_PDF_BUTTON_FTP, IDR_PDF_BUTTON_FTP},
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 384
385 const SkBitmap* bitmap = &skia::GetTopDevice(*canvas)->accessBitmap(false); 385 const SkBitmap* bitmap = &skia::GetTopDevice(*canvas)->accessBitmap(false);
386 pixels_to_write.copyPixelsTo( 386 pixels_to_write.copyPixelsTo(
387 bitmap->getPixels(), bitmap->getSize(), bitmap->rowBytes()); 387 bitmap->getPixels(), bitmap->getSize(), bitmap->rowBytes());
388 388
389 if (needs_unmapping) 389 if (needs_unmapping)
390 image_data->Unmap(); 390 image_data->Unmap();
391 391
392 return true; 392 return true;
393 } 393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698