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

Side by Side Diff: chrome/browser/ui/views/app_list/app_list_dialog_container.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser/ui/views/app_list/app_list_dialog_container.h" 5 #include "chrome/browser/ui/views/app_list/app_list_dialog_container.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "chrome/browser/ui/host_desktop.h" 8 #include "chrome/browser/ui/host_desktop.h"
9 #include "third_party/skia/include/core/SkPaint.h" 9 #include "third_party/skia/include/core/SkPaint.h"
10 #include "ui/app_list/app_list_constants.h" 10 #include "ui/app_list/app_list_constants.h"
(...skipping 23 matching lines...) Expand all
34 const int kAppListOverlayBorderRadius = 3; 34 const int kAppListOverlayBorderRadius = 3;
35 35
36 // The background for App List dialogs, which appears as a rounded rectangle 36 // The background for App List dialogs, which appears as a rounded rectangle
37 // with the same border radius and color as the app list contents. 37 // with the same border radius and color as the app list contents.
38 class AppListOverlayBackground : public views::Background { 38 class AppListOverlayBackground : public views::Background {
39 public: 39 public:
40 AppListOverlayBackground() {} 40 AppListOverlayBackground() {}
41 virtual ~AppListOverlayBackground() {} 41 virtual ~AppListOverlayBackground() {}
42 42
43 // Overridden from views::Background: 43 // Overridden from views::Background:
44 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE { 44 virtual void Paint(gfx::Canvas* canvas, views::View* view) const override {
45 SkPaint paint; 45 SkPaint paint;
46 paint.setStyle(SkPaint::kFill_Style); 46 paint.setStyle(SkPaint::kFill_Style);
47 paint.setColor(app_list::kContentsBackgroundColor); 47 paint.setColor(app_list::kContentsBackgroundColor);
48 canvas->DrawRoundRect( 48 canvas->DrawRoundRect(
49 view->GetContentsBounds(), kAppListOverlayBorderRadius, paint); 49 view->GetContentsBounds(), kAppListOverlayBorderRadius, paint);
50 } 50 }
51 51
52 private: 52 private:
53 DISALLOW_COPY_AND_ASSIGN(AppListOverlayBackground); 53 DISALLOW_COPY_AND_ASSIGN(AppListOverlayBackground);
54 }; 54 };
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 ui::ModalType AppListDialogContainer::GetModalType() const { 128 ui::ModalType AppListDialogContainer::GetModalType() const {
129 return ui::MODAL_TYPE_WINDOW; 129 return ui::MODAL_TYPE_WINDOW;
130 } 130 }
131 131
132 void AppListDialogContainer::WindowClosing() { 132 void AppListDialogContainer::WindowClosing() {
133 if (!close_callback_.is_null()) 133 if (!close_callback_.is_null())
134 close_callback_.Run(); 134 close_callback_.Run();
135 } 135 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698