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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 7 #include "base/message_loop.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
11 #include "grit/ui_strings.h" 11 #include "grit/ui_strings.h"
12 #include "ui/base/animation/slide_animation.h" 12 #include "ui/base/animation/slide_animation.h"
13 #include "ui/base/keycodes/keyboard_codes.h" 13 #include "ui/base/keycodes/keyboard_codes.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/gfx/canvas_skia.h" 16 #include "ui/gfx/canvas_skia.h"
17 #include "ui/gfx/screen.h" 17 #include "ui/gfx/screen.h"
18 #include "ui/views/bubble/bubble_border.h" 18 #include "ui/views/bubble/bubble_border.h"
19 #include "ui/views/widget/widget.h"
19 #include "views/controls/button/text_button.h" 20 #include "views/controls/button/text_button.h"
20 #include "views/controls/link.h" 21 #include "views/controls/link.h"
21 #include "views/widget/widget.h"
22 22
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 #include "ui/base/l10n/l10n_util_win.h" 24 #include "ui/base/l10n/l10n_util_win.h"
25 #endif 25 #endif
26 26
27 // FullscreenExitView ---------------------------------------------------------- 27 // FullscreenExitView ----------------------------------------------------------
28 28
29 namespace { 29 namespace {
30 // Space between the site info label and the buttons / link. 30 // Space between the site info label and the buttons / link.
31 const int kMiddlePaddingPx = 30; 31 const int kMiddlePaddingPx = 30;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 size.set_height(size.height() - popup_bottom + y_offset); 380 size.set_height(size.height() - popup_bottom + y_offset);
381 origin.set_y(origin.y() - y_offset); 381 origin.set_y(origin.y() - y_offset);
382 } 382 }
383 return gfx::Rect(origin, size); 383 return gfx::Rect(origin, size);
384 } 384 }
385 385
386 void FullscreenExitBubbleViews::StartWatchingMouseIfNecessary() { 386 void FullscreenExitBubbleViews::StartWatchingMouseIfNecessary() {
387 if (!fullscreen_bubble::ShowButtonsForType(bubble_type_)) 387 if (!fullscreen_bubble::ShowButtonsForType(bubble_type_))
388 StartWatchingMouse(); 388 StartWatchingMouse();
389 } 389 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/ui/views/generic_info_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698