| 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/bubble/bubble.h" | 5 #include "chrome/browser/ui/views/bubble/bubble.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/browser/ui/views/bubble/border_contents.h" | 9 #include "chrome/browser/ui/views/bubble/border_contents.h" |
| 10 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
| 11 #include "content/common/notification_service.h" | |
| 12 #include "ui/base/animation/slide_animation.h" | 11 #include "ui/base/animation/slide_animation.h" |
| 13 #include "ui/base/keycodes/keyboard_codes.h" | 12 #include "ui/base/keycodes/keyboard_codes.h" |
| 14 #include "ui/gfx/color_utils.h" | 13 #include "ui/gfx/color_utils.h" |
| 15 #include "views/layout/fill_layout.h" | 14 #include "views/layout/fill_layout.h" |
| 16 #include "views/widget/widget.h" | 15 #include "views/widget/widget.h" |
| 17 #include "views/window/client_view.h" | 16 #include "views/window/client_view.h" |
| 18 | 17 |
| 19 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) | 18 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) |
| 20 #include "chrome/browser/chromeos/wm_ipc.h" | 19 #include "chrome/browser/chromeos/wm_ipc.h" |
| 21 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" | 20 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 animation_->Hide(); | 441 animation_->Hide(); |
| 443 } | 442 } |
| 444 | 443 |
| 445 bool Bubble::AcceleratorPressed(const views::Accelerator& accelerator) { | 444 bool Bubble::AcceleratorPressed(const views::Accelerator& accelerator) { |
| 446 if (!delegate_ || delegate_->CloseOnEscape()) { | 445 if (!delegate_ || delegate_->CloseOnEscape()) { |
| 447 DoClose(true); | 446 DoClose(true); |
| 448 return true; | 447 return true; |
| 449 } | 448 } |
| 450 return false; | 449 return false; |
| 451 } | 450 } |
| OLD | NEW |