OLD | NEW |
1 // Copyright (c) 2010 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/views/dropdown_bar_host.h" | 5 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
6 | 6 |
7 #include "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/view_ids.h" | 9 #include "chrome/browser/ui/view_ids.h" |
10 #include "chrome/browser/ui/views/dropdown_bar_view.h" | 10 #include "chrome/browser/ui/views/dropdown_bar_view.h" |
11 #include "chrome/browser/ui/views/frame/browser_view.h" | 11 #include "chrome/browser/ui/views/frame/browser_view.h" |
12 #include "gfx/path.h" | 12 #include "gfx/path.h" |
13 #include "gfx/scrollbar_size.h" | 13 #include "gfx/scrollbar_size.h" |
14 #include "ui/base/animation/slide_animation.h" | 14 #include "ui/base/animation/slide_animation.h" |
15 #include "views/focus/external_focus_tracker.h" | 15 #include "views/focus/external_focus_tracker.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 focus_manager_->RegisterAccelerator(escape, this); | 309 focus_manager_->RegisterAccelerator(escape, this); |
310 esc_accel_target_registered_ = true; | 310 esc_accel_target_registered_ = true; |
311 } | 311 } |
312 | 312 |
313 void DropdownBarHost::UnregisterAccelerators() { | 313 void DropdownBarHost::UnregisterAccelerators() { |
314 DCHECK(esc_accel_target_registered_); | 314 DCHECK(esc_accel_target_registered_); |
315 views::Accelerator escape(app::VKEY_ESCAPE, false, false, false); | 315 views::Accelerator escape(app::VKEY_ESCAPE, false, false, false); |
316 focus_manager_->UnregisterAccelerator(escape, this); | 316 focus_manager_->UnregisterAccelerator(escape, this); |
317 esc_accel_target_registered_ = false; | 317 esc_accel_target_registered_ = false; |
318 } | 318 } |
OLD | NEW |