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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.h

Issue 2376193006: Disable Ctrl+Shift+P on Chrome OS (Closed)
Patch Set: Fix test. Created 4 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
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 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Handles the request to cancel the pending print request. |args| is unused. 142 // Handles the request to cancel the pending print request. |args| is unused.
143 void HandleCancelPendingPrintRequest(const base::ListValue* args); 143 void HandleCancelPendingPrintRequest(const base::ListValue* args);
144 144
145 // Handles a request to store data that the web ui wishes to persist. 145 // Handles a request to store data that the web ui wishes to persist.
146 // First element of |args| is the data to persist. 146 // First element of |args| is the data to persist.
147 void HandleSaveAppState(const base::ListValue* args); 147 void HandleSaveAppState(const base::ListValue* args);
148 148
149 // Gets the printer capabilities. First element of |args| is the printer name. 149 // Gets the printer capabilities. First element of |args| is the printer name.
150 void HandleGetPrinterCapabilities(const base::ListValue* args); 150 void HandleGetPrinterCapabilities(const base::ListValue* args);
151 151
152 #if defined(ENABLE_BASIC_PRINTING) 152 #if defined(ENABLE_BASIC_PRINTING) && !defined(OS_CHROMEOS)
153 // Asks the initiator renderer to show the native print system dialog. |args| 153 // Asks the initiator renderer to show the native print system dialog. |args|
154 // is unused. 154 // is unused.
155 void HandleShowSystemDialog(const base::ListValue* args); 155 void HandleShowSystemDialog(const base::ListValue* args);
156 #endif // defined(ENABLE_BASIC_PRINTING) 156 #endif // defined(ENABLE_BASIC_PRINTING) && !defined(OS_CHROMEOS)
Lei Zhang 2016/10/03 23:03:58 I would just omit the comment since the #if and #e
skau 2016/10/03 23:32:13 Done.
157 157
158 // Callback for the signin dialog to call once signin is complete. 158 // Callback for the signin dialog to call once signin is complete.
159 void OnSigninComplete(); 159 void OnSigninComplete();
160 160
161 // Brings up a dialog to allow the user to sign into cloud print. 161 // Brings up a dialog to allow the user to sign into cloud print.
162 // |args| is unused. 162 // |args| is unused.
163 void HandleSignin(const base::ListValue* args); 163 void HandleSignin(const base::ListValue* args);
164 164
165 // Generates new token and sends back to UI. 165 // Generates new token and sends back to UI.
166 void HandleGetAccessToken(const base::ListValue* args); 166 void HandleGetAccessToken(const base::ListValue* args);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // Notifies tests that want to know if the PDF has been saved. This doesn't 379 // Notifies tests that want to know if the PDF has been saved. This doesn't
380 // notify the test if it was a successful save, only that it was attempted. 380 // notify the test if it was a successful save, only that it was attempted.
381 base::Closure pdf_file_saved_closure_; 381 base::Closure pdf_file_saved_closure_;
382 382
383 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_; 383 base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
384 384
385 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler); 385 DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
386 }; 386 };
387 387
388 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_ 388 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698