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

Side by Side Diff: cloud_print/service/win/cloud_print_service_config.cc

Issue 1100633004: Update {virtual,override} to follow C++11 style in cloud_print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 5 years, 8 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
« no previous file with comments | « cloud_print/service/win/chrome_launcher.h ('k') | cloud_print/service/win/service_listener.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <atlapp.h> // NOLINT 6 #include <atlapp.h> // NOLINT
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 16 matching lines...) Expand all
27 using cloud_print::LoadLocalString; 27 using cloud_print::LoadLocalString;
28 using cloud_print::GetErrorMessage; 28 using cloud_print::GetErrorMessage;
29 29
30 class SetupDialog : public base::RefCounted<SetupDialog>, 30 class SetupDialog : public base::RefCounted<SetupDialog>,
31 public ATL::CDialogImpl<SetupDialog> { 31 public ATL::CDialogImpl<SetupDialog> {
32 public: 32 public:
33 // Enables accelerators. 33 // Enables accelerators.
34 class Dispatcher : public base::MessagePumpDispatcher { 34 class Dispatcher : public base::MessagePumpDispatcher {
35 public: 35 public:
36 explicit Dispatcher(SetupDialog* dialog) : dialog_(dialog) {} 36 explicit Dispatcher(SetupDialog* dialog) : dialog_(dialog) {}
37 virtual ~Dispatcher() {}; 37 ~Dispatcher() override {}
38 38
39 // MessagePumpDispatcher: 39 // MessagePumpDispatcher:
40 virtual uint32_t Dispatch(const MSG& msg) override { 40 uint32_t Dispatch(const MSG& msg) override {
41 MSG msg2 = msg; 41 MSG msg2 = msg;
42 uint32_t action = POST_DISPATCH_NONE; 42 uint32_t action = POST_DISPATCH_NONE;
43 if (!dialog_->IsDialogMessage(&msg2)) 43 if (!dialog_->IsDialogMessage(&msg2))
44 action = POST_DISPATCH_PERFORM_DEFAULT; 44 action = POST_DISPATCH_PERFORM_DEFAULT;
45 return action; 45 return action;
46 } 46 }
47 47
48 private: 48 private:
49 scoped_refptr<SetupDialog> dialog_; 49 scoped_refptr<SetupDialog> dialog_;
50 }; 50 };
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 base::MessageLoopForUI loop; 448 base::MessageLoopForUI loop;
449 scoped_refptr<SetupDialog> dialog(new SetupDialog()); 449 scoped_refptr<SetupDialog> dialog(new SetupDialog());
450 dialog->Create(NULL); 450 dialog->Create(NULL);
451 dialog->ShowWindow(SW_SHOW); 451 dialog->ShowWindow(SW_SHOW);
452 SetupDialog::Dispatcher dispatcher(dialog.get()); 452 SetupDialog::Dispatcher dispatcher(dialog.get());
453 base::RunLoop run_loop(&dispatcher); 453 base::RunLoop run_loop(&dispatcher);
454 run_loop.Run(); 454 run_loop.Run();
455 return 0; 455 return 0;
456 } 456 }
OLDNEW
« no previous file with comments | « cloud_print/service/win/chrome_launcher.h ('k') | cloud_print/service/win/service_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698