| 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/info_bubble.h" | 5 #include "chrome/browser/ui/views/info_bubble.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/browser/ui/window_sizer.h" | 9 #include "chrome/browser/ui/window_sizer.h" |
| 10 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
| 11 #include "gfx/canvas_skia.h" | |
| 12 #include "gfx/color_utils.h" | |
| 13 #include "gfx/path.h" | |
| 14 #include "third_party/skia/include/core/SkPaint.h" | 11 #include "third_party/skia/include/core/SkPaint.h" |
| 15 #include "ui/base/animation/slide_animation.h" | 12 #include "ui/base/animation/slide_animation.h" |
| 16 #include "ui/base/keycodes/keyboard_codes.h" | 13 #include "ui/base/keycodes/keyboard_codes.h" |
| 14 #include "ui/gfx/canvas_skia.h" |
| 15 #include "ui/gfx/color_utils.h" |
| 16 #include "ui/gfx/path.h" |
| 17 #include "views/layout/fill_layout.h" | 17 #include "views/layout/fill_layout.h" |
| 18 #include "views/widget/root_view.h" | 18 #include "views/widget/root_view.h" |
| 19 #include "views/widget/widget.h" | 19 #include "views/widget/widget.h" |
| 20 #include "views/window/client_view.h" | 20 #include "views/window/client_view.h" |
| 21 #include "views/window/window.h" | 21 #include "views/window/window.h" |
| 22 | 22 |
| 23 #if defined(OS_CHROMEOS) | 23 #if defined(OS_CHROMEOS) |
| 24 #include "chrome/browser/chromeos/wm_ipc.h" | 24 #include "chrome/browser/chromeos/wm_ipc.h" |
| 25 #include "third_party/cros/chromeos_wm_ipc_enums.h" | 25 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
| 26 #endif | 26 #endif |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 animation_->Hide(); | 556 animation_->Hide(); |
| 557 } | 557 } |
| 558 | 558 |
| 559 bool InfoBubble::AcceleratorPressed(const views::Accelerator& accelerator) { | 559 bool InfoBubble::AcceleratorPressed(const views::Accelerator& accelerator) { |
| 560 if (!delegate_ || delegate_->CloseOnEscape()) { | 560 if (!delegate_ || delegate_->CloseOnEscape()) { |
| 561 DoClose(true); | 561 DoClose(true); |
| 562 return true; | 562 return true; |
| 563 } | 563 } |
| 564 return false; | 564 return false; |
| 565 } | 565 } |
| OLD | NEW |