| OLD | NEW |
| 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 "views/bubble/bubble_border.h" | 18 #include "ui/views/bubble/bubble_border.h" |
| 19 #include "views/controls/button/text_button.h" | 19 #include "views/controls/button/text_button.h" |
| 20 #include "views/controls/link.h" | 20 #include "views/controls/link.h" |
| 21 #include "views/widget/widget.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 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |