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

Side by Side Diff: chrome/browser/ui/views/message_center/message_center_frame_view.cc

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 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 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/views/message_center/message_center_frame_view.h" 5 #include "chrome/browser/ui/views/message_center/message_center_frame_view.h"
6 6
7 #include "ui/base/hit_test.h" 7 #include "ui/base/hit_test.h"
8 #include "ui/message_center/message_center_style.h" 8 #include "ui/message_center/message_center_style.h"
9 #include "ui/views/shadow_border.h" 9 #include "ui/views/shadow_border.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 11
12 namespace {
13
14 const int kBorderWidth = 1;
15 const int kShadowBlur = 8;
16
17 } // namepspace
18
19 namespace message_center { 12 namespace message_center {
20 13
21 MessageCenterFrameView::MessageCenterFrameView() { 14 MessageCenterFrameView::MessageCenterFrameView() {
22 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 15 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
16 const int kBorderWidth = 1;
23 set_border(views::Border::CreateSolidBorder( 17 set_border(views::Border::CreateSolidBorder(
24 kBorderWidth, message_center::kMessageCenterBorderColor)); 18 kBorderWidth, message_center::kMessageCenterBorderColor));
25 #else 19 #else
20 const int kShadowBlur = 8;
26 set_border(new views::ShadowBorder(kShadowBlur, 21 set_border(new views::ShadowBorder(kShadowBlur,
27 message_center::kMessageCenterShadowColor, 22 message_center::kMessageCenterShadowColor,
28 0, // Vertical offset 23 0, // Vertical offset
29 0)); // Horizontal offset 24 0)); // Horizontal offset
30 #endif 25 #endif
31 } 26 }
32 27
33 MessageCenterFrameView::~MessageCenterFrameView() {} 28 MessageCenterFrameView::~MessageCenterFrameView() {}
34 29
35 gfx::Rect MessageCenterFrameView::GetBoundsForClientView() const { 30 gfx::Rect MessageCenterFrameView::GetBoundsForClientView() const {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 64
70 gfx::Insets MessageCenterFrameView::GetInsets() const { 65 gfx::Insets MessageCenterFrameView::GetInsets() const {
71 return border()->GetInsets(); 66 return border()->GetInsets();
72 } 67 }
73 68
74 const char* MessageCenterFrameView::GetClassName() const { 69 const char* MessageCenterFrameView::GetClassName() const {
75 return "MessageCenterFrameView"; 70 return "MessageCenterFrameView";
76 } 71 }
77 72
78 } // namespace message_center 73 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698