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

Side by Side Diff: chrome/browser/ui/views/color_chooser_win.cc

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 #include <windows.h> 5 #include <windows.h>
6 6
7 #include "chrome/browser/platform_util.h" 7 #include "chrome/browser/platform_util.h"
8 #include "chrome/browser/ui/browser_dialogs.h" 8 #include "chrome/browser/ui/browser_dialogs.h"
9 #include "chrome/browser/ui/host_desktop.h" 9 #include "chrome/browser/ui/host_desktop.h"
10 #include "chrome/browser/ui/views/color_chooser_aura.h" 10 #include "chrome/browser/ui/views/color_chooser_aura.h"
11 #include "chrome/browser/ui/views/color_chooser_dialog.h" 11 #include "chrome/browser/ui/views/color_chooser_dialog.h"
12 #include "content/public/browser/color_chooser.h" 12 #include "content/public/browser/color_chooser.h"
13 #include "content/public/browser/render_view_host.h" 13 #include "content/public/browser/render_view_host.h"
14 #include "content/public/browser/render_widget_host_view.h" 14 #include "content/public/browser/render_widget_host_view.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "ui/views/color_chooser/color_chooser_listener.h" 16 #include "ui/views/color_chooser/color_chooser_listener.h"
17 17
18 class ColorChooserWin : public content::ColorChooser, 18 class ColorChooserWin : public content::ColorChooser,
19 public views::ColorChooserListener { 19 public views::ColorChooserListener {
20 public: 20 public:
21 static ColorChooserWin* Open(content::WebContents* web_contents, 21 static ColorChooserWin* Open(content::WebContents* web_contents,
22 SkColor initial_color); 22 SkColor initial_color);
23 23
24 ColorChooserWin(content::WebContents* web_contents, 24 ColorChooserWin(content::WebContents* web_contents,
25 SkColor initial_color); 25 SkColor initial_color);
26 ~ColorChooserWin(); 26 ~ColorChooserWin();
27 27
28 // content::ColorChooser overrides: 28 // content::ColorChooser overrides:
29 virtual void End() OVERRIDE; 29 virtual void End() override;
30 virtual void SetSelectedColor(SkColor color) OVERRIDE {} 30 virtual void SetSelectedColor(SkColor color) override {}
31 31
32 // views::ColorChooserListener overrides: 32 // views::ColorChooserListener overrides:
33 virtual void OnColorChosen(SkColor color); 33 virtual void OnColorChosen(SkColor color);
34 virtual void OnColorChooserDialogClosed(); 34 virtual void OnColorChooserDialogClosed();
35 35
36 private: 36 private:
37 static ColorChooserWin* current_color_chooser_; 37 static ColorChooserWin* current_color_chooser_;
38 38
39 // The web contents invoking the color chooser. No ownership. because it will 39 // The web contents invoking the color chooser. No ownership. because it will
40 // outlive this class. 40 // outlive this class.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, 100 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
101 SkColor initial_color) { 101 SkColor initial_color) {
102 gfx::NativeView native_view = web_contents->GetNativeView(); 102 gfx::NativeView native_view = web_contents->GetNativeView();
103 if (GetHostDesktopTypeForNativeView(native_view) == HOST_DESKTOP_TYPE_ASH) 103 if (GetHostDesktopTypeForNativeView(native_view) == HOST_DESKTOP_TYPE_ASH)
104 return ColorChooserAura::Open(web_contents, initial_color); 104 return ColorChooserAura::Open(web_contents, initial_color);
105 105
106 return ColorChooserWin::Open(web_contents, initial_color); 106 return ColorChooserWin::Open(web_contents, initial_color);
107 } 107 }
108 108
109 } // namespace chrome 109 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/color_chooser_dialog.h ('k') | chrome/browser/ui/views/confirm_bubble_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698