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 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/public/browser/native_web_keyboard_event.h" | 12 #include "content/public/browser/native_web_keyboard_event.h" |
13 #include "ui/gfx/animation/animation_delegate.h" | 13 #include "ui/gfx/animation/animation_delegate.h" |
14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 #include "ui/views/focus/focus_manager.h" | 16 #include "ui/views/focus/focus_manager.h" |
17 | 17 |
18 class BrowserView; | 18 class BrowserView; |
19 class DropdownBarHostDelegate; | 19 class DropdownBarHostDelegate; |
20 class DropdownBarView; | 20 class DropdownBarView; |
21 | 21 |
22 namespace content { | |
23 class WebContents; | |
24 } | |
25 | |
26 namespace gfx { | 22 namespace gfx { |
27 class SlideAnimation; | 23 class SlideAnimation; |
28 } // namespace gfx | 24 } // namespace gfx |
29 | 25 |
30 namespace views { | 26 namespace views { |
31 class ExternalFocusTracker; | 27 class ExternalFocusTracker; |
32 class View; | 28 class View; |
33 class Widget; | 29 class Widget; |
34 } // namespace views | 30 } // namespace views |
35 | 31 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 std::unique_ptr<views::Widget> host_; | 174 std::unique_ptr<views::Widget> host_; |
179 | 175 |
180 // A flag to manually manage visibility. GTK/X11 is asynchronous and | 176 // A flag to manually manage visibility. GTK/X11 is asynchronous and |
181 // the state of the widget can be out of sync. | 177 // the state of the widget can be out of sync. |
182 bool is_visible_; | 178 bool is_visible_; |
183 | 179 |
184 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost); | 180 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost); |
185 }; | 181 }; |
186 | 182 |
187 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ | 183 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ |
OLD | NEW |