Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/browser/ui/views/dropdown_bar_host.cc

Issue 8174005: Get Chrome to build & link with USE_AURA on Windows again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/dropdown_bar_host.h" 5 #include "chrome/browser/ui/views/dropdown_bar_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" 10 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
11 #include "chrome/browser/ui/views/dropdown_bar_view.h" 11 #include "chrome/browser/ui/views/dropdown_bar_view.h"
12 #include "chrome/browser/ui/views/frame/browser_view.h" 12 #include "chrome/browser/ui/views/frame/browser_view.h"
13 #include "ui/base/animation/slide_animation.h" 13 #include "ui/base/animation/slide_animation.h"
14 #include "ui/base/keycodes/keyboard_codes.h" 14 #include "ui/base/keycodes/keyboard_codes.h"
15 #include "ui/gfx/path.h" 15 #include "ui/gfx/path.h"
16 #include "ui/gfx/scrollbar_size.h" 16 #include "ui/gfx/scrollbar_size.h"
17 #include "views/focus/external_focus_tracker.h" 17 #include "views/focus/external_focus_tracker.h"
18 #include "views/focus/view_storage.h" 18 #include "views/focus/view_storage.h"
19 #include "views/widget/widget.h" 19 #include "views/widget/widget.h"
20 20
21 #if defined(OS_WIN) 21 #if defined(USE_AURA)
22 #include "ui/gfx/scoped_sk_region.h"
23 #elif defined(OS_WIN)
22 #include "base/win/scoped_gdi_object.h" 24 #include "base/win/scoped_gdi_object.h"
23 #elif defined(TOOLKIT_USES_GTK) 25 #elif defined(TOOLKIT_USES_GTK)
24 #include "ui/base/gtk/scoped_handle_gtk.h" 26 #include "ui/base/gtk/scoped_handle_gtk.h"
25 #else
26 #include "ui/gfx/scoped_sk_region.h"
27 #endif 27 #endif
28 28
29 namespace { 29 namespace {
30 30
31 #if defined(OS_WIN) 31 #if defined(USE_AURA)
32 typedef gfx::ScopedSkRegion ScopedPlatformRegion;
33 #elif defined(OS_WIN)
32 typedef base::win::ScopedRegion ScopedPlatformRegion; 34 typedef base::win::ScopedRegion ScopedPlatformRegion;
33 #elif defined(TOOLKIT_USES_GTK) 35 #elif defined(TOOLKIT_USES_GTK)
34 typedef ui::ScopedRegion ScopedPlatformRegion; 36 typedef ui::ScopedRegion ScopedPlatformRegion;
35 #else
36 typedef gfx::ScopedSkRegion ScopedPlatformRegion;
37 #endif 37 #endif
38 38
39 } // namespace 39 } // namespace
40 40
41 using gfx::Path; 41 using gfx::Path;
42 42
43 // static 43 // static
44 bool DropdownBarHost::disable_animations_during_testing_ = false; 44 bool DropdownBarHost::disable_animations_during_testing_ = false;
45 45
46 //////////////////////////////////////////////////////////////////////////////// 46 ////////////////////////////////////////////////////////////////////////////////
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 focus_manager_->RegisterAccelerator(escape, this); 335 focus_manager_->RegisterAccelerator(escape, this);
336 esc_accel_target_registered_ = true; 336 esc_accel_target_registered_ = true;
337 } 337 }
338 338
339 void DropdownBarHost::UnregisterAccelerators() { 339 void DropdownBarHost::UnregisterAccelerators() {
340 DCHECK(esc_accel_target_registered_); 340 DCHECK(esc_accel_target_registered_);
341 views::Accelerator escape(ui::VKEY_ESCAPE, false, false, false); 341 views::Accelerator escape(ui::VKEY_ESCAPE, false, false, false);
342 focus_manager_->UnregisterAccelerator(escape, this); 342 focus_manager_->UnregisterAccelerator(escape, this);
343 esc_accel_target_registered_ = false; 343 esc_accel_target_registered_ = false;
344 } 344 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/browser/ui/views/shell_dialogs_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698