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

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

Issue 53703002: Remove IDR_BUBBLE_SHADOW, use IDR_WINDOW_BUBBLE_SHADOW_BIG. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove IDR_BUBBLE_SHADOW, use IDR_WINDOW_BUBBLE_SHADOW_BIG. Created 7 years, 1 month 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 | Annotate | Revision Log
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 "chrome/browser/ui/views/fullscreen_exit_bubble_views.h" 5 #include "chrome/browser/ui/views/fullscreen_exit_bubble_views.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const string16& accelerator, 127 const string16& accelerator,
128 const GURL& url, 128 const GURL& url,
129 FullscreenExitBubbleType bubble_type) 129 FullscreenExitBubbleType bubble_type)
130 : bubble_(bubble), 130 : bubble_(bubble),
131 link_(NULL), 131 link_(NULL),
132 mouse_lock_exit_instruction_(NULL), 132 mouse_lock_exit_instruction_(NULL),
133 message_label_(NULL), 133 message_label_(NULL),
134 button_view_(NULL), 134 button_view_(NULL),
135 browser_fullscreen_exit_accelerator_(accelerator) { 135 browser_fullscreen_exit_accelerator_(accelerator) {
136 views::BubbleBorder* bubble_border = new views::BubbleBorder( 136 views::BubbleBorder* bubble_border = new views::BubbleBorder(
137 views::BubbleBorder::NONE, views::BubbleBorder::SHADOW, SK_ColorWHITE); 137 views::BubbleBorder::NONE, views::BubbleBorder::BIG_SHADOW,
138 SK_ColorWHITE);
138 set_background(new views::BubbleBackground(bubble_border)); 139 set_background(new views::BubbleBackground(bubble_border));
139 set_border(bubble_border); 140 set_border(bubble_border);
140 set_focusable(false); 141 set_focusable(false);
141 142
142 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 143 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
143 message_label_ = new views::Label(); 144 message_label_ = new views::Label();
144 message_label_->SetFont(rb.GetFont(ui::ResourceBundle::MediumFont)); 145 message_label_->SetFont(rb.GetFont(ui::ResourceBundle::MediumFont));
145 146
146 mouse_lock_exit_instruction_ = new views::Label(); 147 mouse_lock_exit_instruction_ = new views::Label();
147 mouse_lock_exit_instruction_->set_collapse_when_hidden(true); 148 mouse_lock_exit_instruction_->set_collapse_when_hidden(true);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 const content::NotificationDetails& details) { 506 const content::NotificationDetails& details) {
506 DCHECK_EQ(chrome::NOTIFICATION_FULLSCREEN_CHANGED, type); 507 DCHECK_EQ(chrome::NOTIFICATION_FULLSCREEN_CHANGED, type);
507 UpdateForImmersiveState(); 508 UpdateForImmersiveState();
508 } 509 }
509 510
510 void FullscreenExitBubbleViews::OnWidgetVisibilityChanged( 511 void FullscreenExitBubbleViews::OnWidgetVisibilityChanged(
511 views::Widget* widget, 512 views::Widget* widget,
512 bool visible) { 513 bool visible) {
513 UpdateMouseWatcher(); 514 UpdateMouseWatcher();
514 } 515 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/fullscreen/fullscreen_exit_bubble.cc ('k') | ui/resources/default_100_percent/bubble_shadow_bottom.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698