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

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

Issue 2272173002: Fix most chrome/browser/ui "gn check" problems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 3 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 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 "chrome/browser/ui/screen_capture_notification_ui.h" 5 #include "chrome/browser/ui/screen_capture_notification_ui.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/browser/ui/views/chrome_views_export.h" 9 #include "chrome/browser/ui/views/chrome_views_export.h"
11 #include "chrome/grit/generated_resources.h" 10 #include "chrome/grit/generated_resources.h"
12 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
13 #include "ui/base/hit_test.h" 12 #include "ui/base/hit_test.h"
14 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/resource/resource_bundle.h" 14 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/display/display.h" 15 #include "ui/display/display.h"
17 #include "ui/display/screen.h" 16 #include "ui/display/screen.h"
18 #include "ui/views/bubble/bubble_border.h" 17 #include "ui/views/bubble/bubble_border.h"
19 #include "ui/views/bubble/bubble_frame_view.h" 18 #include "ui/views/bubble/bubble_frame_view.h"
20 #include "ui/views/controls/button/blue_button.h" 19 #include "ui/views/controls/button/blue_button.h"
21 #include "ui/views/controls/image_view.h" 20 #include "ui/views/controls/image_view.h"
22 #include "ui/views/controls/link.h" 21 #include "ui/views/controls/link.h"
23 #include "ui/views/controls/link_listener.h" 22 #include "ui/views/controls/link_listener.h"
24 #include "ui/views/view.h" 23 #include "ui/views/view.h"
25 #include "ui/views/widget/widget.h" 24 #include "ui/views/widget/widget.h"
26 #include "ui/views/widget/widget_delegate.h" 25 #include "ui/views/widget/widget_delegate.h"
27 #include "ui/wm/core/shadow_types.h" 26 #include "ui/wm/core/shadow_types.h"
28 27
29 #if defined(OS_WIN) 28 #if defined(OS_WIN)
30 #include "ui/views/win/hwnd_util.h" 29 #include "ui/views/win/hwnd_util.h"
31 #endif 30 #endif
32 31
33 #if defined(USE_ASH) 32 #if defined(USE_ASH)
34 #include "ash/shell.h" 33 #include "ash/shell.h" // nogncheck
35 #endif 34 #endif
36 35
37 namespace { 36 namespace {
38 37
39 const int kMinimumWidth = 460; 38 const int kMinimumWidth = 460;
40 const int kMaximumWidth = 1000; 39 const int kMaximumWidth = 1000;
41 const int kHorizontalMargin = 10; 40 const int kHorizontalMargin = 10;
42 const float kWindowAlphaValue = 0.85f; 41 const float kWindowAlphaValue = 0.85f;
43 const int kPaddingVertical = 5; 42 const int kPaddingVertical = 5;
44 const int kPaddingHorizontal = 10; 43 const int kPaddingHorizontal = 10;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 328 }
330 } 329 }
331 330
332 } // namespace 331 } // namespace
333 332
334 std::unique_ptr<ScreenCaptureNotificationUI> 333 std::unique_ptr<ScreenCaptureNotificationUI>
335 ScreenCaptureNotificationUI::Create(const base::string16& text) { 334 ScreenCaptureNotificationUI::Create(const base::string16& text) {
336 return std::unique_ptr<ScreenCaptureNotificationUI>( 335 return std::unique_ptr<ScreenCaptureNotificationUI>(
337 new ScreenCaptureNotificationUIViews(text)); 336 new ScreenCaptureNotificationUIViews(text));
338 } 337 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698