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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 animation_->Hide(); | 443 animation_->Hide(); |
445 } | 444 } |
446 | 445 |
447 bool Bubble::AcceleratorPressed(const views::Accelerator& accelerator) { | 446 bool Bubble::AcceleratorPressed(const views::Accelerator& accelerator) { |
448 if (!delegate_ || delegate_->CloseOnEscape()) { | 447 if (!delegate_ || delegate_->CloseOnEscape()) { |
449 DoClose(true); | 448 DoClose(true); |
450 return true; | 449 return true; |
451 } | 450 } |
452 return false; | 451 return false; |
453 } | 452 } |
OLD | NEW |