Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1022)

Issue 10539171: Implement GetDefaultPrintSettings for pepper (Closed)

Created:
8 years, 6 months ago by raymes
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jochen+watch-content_chromium.org, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Provides a real implementation of GetDefaultPrintSettings. This accesses the Chrome printing code to determine the default print settings for the default printer. Ideally we would query these settings every time they are requested, however this cannot be done (see the description in pepper_print_settings_initializer.h). Instead the settings are grabbed once at startup and cached. BUG= TEST=Added ppapi test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143294

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Patch Set 20 : . #

Total comments: 20

Patch Set 21 : . #

Patch Set 22 : . #

Total comments: 8

Patch Set 23 : . #

Total comments: 20

Patch Set 24 : . #

Total comments: 7

Patch Set 25 : . #

Patch Set 26 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -34 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +17 lines, -2 lines 0 comments Download
A content/browser/renderer_host/pepper_print_settings_initializer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +46 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper_print_settings_initializer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +124 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -27 lines 0 comments Download
A ppapi/tests/test_printing.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -0 lines 0 comments Download
A ppapi/tests/test_printing.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
raymes
8 years, 6 months ago (2012-06-18 22:18:24 UTC) #1
yzshen1
https://chromiumcodereview.appspot.com/10539171/diff/28002/content/browser/renderer_host/pepper_print_settings_initializer.cc File content/browser/renderer_host/pepper_print_settings_initializer.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/28002/content/browser/renderer_host/pepper_print_settings_initializer.cc#newcode8 content/browser/renderer_host/pepper_print_settings_initializer.cc:8: #include "ppapi/c/dev/pp_print_settings_dev.h" You have included it in .h file. ...
8 years, 6 months ago (2012-06-18 23:54:10 UTC) #2
raymes
https://chromiumcodereview.appspot.com/10539171/diff/28002/content/browser/renderer_host/pepper_print_settings_initializer.cc File content/browser/renderer_host/pepper_print_settings_initializer.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/28002/content/browser/renderer_host/pepper_print_settings_initializer.cc#newcode8 content/browser/renderer_host/pepper_print_settings_initializer.cc:8: #include "ppapi/c/dev/pp_print_settings_dev.h" On 2012/06/18 23:54:11, yzshen1 wrote: > You ...
8 years, 6 months ago (2012-06-19 02:56:21 UTC) #3
yzshen1
lgtm
8 years, 6 months ago (2012-06-19 05:52:07 UTC) #4
jochen (gone - plz use gerrit)
drive-by content review https://chromiumcodereview.appspot.com/10539171/diff/39015/content/browser/renderer_host/pepper_print_settings_initializer.cc File content/browser/renderer_host/pepper_print_settings_initializer.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/39015/content/browser/renderer_host/pepper_print_settings_initializer.cc#newcode7 content/browser/renderer_host/pepper_print_settings_initializer.cc:7: #include "content/public/browser/browser_thread.h" code in content/ should ...
8 years, 6 months ago (2012-06-19 13:07:16 UTC) #5
raymes
Thanks https://chromiumcodereview.appspot.com/10539171/diff/39015/content/browser/renderer_host/pepper_print_settings_initializer.cc File content/browser/renderer_host/pepper_print_settings_initializer.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/39015/content/browser/renderer_host/pepper_print_settings_initializer.cc#newcode7 content/browser/renderer_host/pepper_print_settings_initializer.cc:7: #include "content/public/browser/browser_thread.h" On 2012/06/19 13:07:16, jochen wrote: > ...
8 years, 6 months ago (2012-06-19 15:36:35 UTC) #6
raymes
+brettw for content/* approval.
8 years, 6 months ago (2012-06-19 15:45:31 UTC) #7
jochen (gone - plz use gerrit)
https://chromiumcodereview.appspot.com/10539171/diff/25004/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/25004/content/browser/renderer_host/pepper_message_filter.cc#newcode81 content/browser/renderer_host/pepper_message_filter.cc:81: print_settings_initializer_(new content::PepperPrintSettingsInitializer) { eventually, PepperMessageFilter will be moved to ...
8 years, 6 months ago (2012-06-19 17:50:33 UTC) #8
raymes
https://chromiumcodereview.appspot.com/10539171/diff/25004/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/25004/content/browser/renderer_host/pepper_message_filter.cc#newcode81 content/browser/renderer_host/pepper_message_filter.cc:81: print_settings_initializer_(new content::PepperPrintSettingsInitializer) { On 2012/06/19 17:50:34, jochen wrote: > ...
8 years, 6 months ago (2012-06-19 17:58:44 UTC) #9
jochen (gone - plz use gerrit)
content/ lg
8 years, 6 months ago (2012-06-19 18:01:45 UTC) #10
brettw
https://chromiumcodereview.appspot.com/10539171/diff/26015/content/browser/renderer_host/pepper_message_filter.cc File content/browser/renderer_host/pepper_message_filter.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/26015/content/browser/renderer_host/pepper_message_filter.cc#newcode116 content/browser/renderer_host/pepper_message_filter.cc:116: message.type() == PpapiHostMsg_PPBFlashDeviceID_Get::ID) { Can I suggest an alternate ...
8 years, 6 months ago (2012-06-19 21:41:14 UTC) #11
brettw
Raymes pointed out why I'm wrong. LGTM https://chromiumcodereview.appspot.com/10539171/diff/26015/content/browser/renderer_host/pepper_print_settings_initializer.cc File content/browser/renderer_host/pepper_print_settings_initializer.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/26015/content/browser/renderer_host/pepper_print_settings_initializer.cc#newcode78 content/browser/renderer_host/pepper_print_settings_initializer.cc:78: // This ...
8 years, 6 months ago (2012-06-19 22:07:21 UTC) #12
raymes
https://chromiumcodereview.appspot.com/10539171/diff/26015/content/browser/renderer_host/pepper_print_settings_initializer.cc File content/browser/renderer_host/pepper_print_settings_initializer.cc (right): https://chromiumcodereview.appspot.com/10539171/diff/26015/content/browser/renderer_host/pepper_print_settings_initializer.cc#newcode78 content/browser/renderer_host/pepper_print_settings_initializer.cc:78: // This function should run on the UI thread ...
8 years, 6 months ago (2012-06-19 22:23:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10539171/42001
8 years, 6 months ago (2012-06-19 22:24:30 UTC) #14
commit-bot: I haz the power
Try job failure for 10539171-42001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-19 23:34:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10539171/40006
8 years, 6 months ago (2012-06-20 22:29:31 UTC) #16
commit-bot: I haz the power
8 years, 6 months ago (2012-06-20 23:30:02 UTC) #17
Change committed as 143294

Powered by Google App Engine
This is Rietveld 408576698