| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/info_bubble.h" | 5 #include "chrome/browser/views/info_bubble.h" |
| 6 | 6 |
| 7 #include "app/gfx/canvas.h" | |
| 8 #include "base/keyboard_codes.h" | 7 #include "base/keyboard_codes.h" |
| 9 #include "chrome/browser/views/bubble_border.h" | 8 #include "chrome/browser/views/bubble_border.h" |
| 10 #include "chrome/browser/window_sizer.h" | 9 #include "chrome/browser/window_sizer.h" |
| 11 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
| 11 #include "gfx/canvas.h" |
| 12 #include "gfx/color_utils.h" | 12 #include "gfx/color_utils.h" |
| 13 #include "gfx/path.h" | 13 #include "gfx/path.h" |
| 14 #include "third_party/skia/include/core/SkPaint.h" | 14 #include "third_party/skia/include/core/SkPaint.h" |
| 15 #include "views/fill_layout.h" | 15 #include "views/fill_layout.h" |
| 16 #include "views/widget/root_view.h" | 16 #include "views/widget/root_view.h" |
| 17 #include "views/window/window.h" | 17 #include "views/window/window.h" |
| 18 | 18 |
| 19 #if defined(OS_CHROMEOS) | 19 #if defined(OS_CHROMEOS) |
| 20 #include "chrome/browser/chromeos/wm_ipc.h" | 20 #include "chrome/browser/chromeos/wm_ipc.h" |
| 21 #endif | 21 #endif |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 #endif | 347 #endif |
| 348 } | 348 } |
| 349 | 349 |
| 350 bool InfoBubble::AcceleratorPressed(const views::Accelerator& accelerator) { | 350 bool InfoBubble::AcceleratorPressed(const views::Accelerator& accelerator) { |
| 351 if (!delegate_ || delegate_->CloseOnEscape()) { | 351 if (!delegate_ || delegate_->CloseOnEscape()) { |
| 352 Close(true); | 352 Close(true); |
| 353 return true; | 353 return true; |
| 354 } | 354 } |
| 355 return false; | 355 return false; |
| 356 } | 356 } |
| OLD | NEW |