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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/common/native_web_keyboard_event.h" | 10 #include "chrome/common/native_web_keyboard_event.h" |
11 #include "gfx/native_widget_types.h" | |
12 #include "gfx/rect.h" | |
13 #include "ui/base/animation/animation_delegate.h" | 11 #include "ui/base/animation/animation_delegate.h" |
| 12 #include "ui/gfx/native_widget_types.h" |
| 13 #include "ui/gfx/rect.h" |
14 #include "views/controls/textfield/textfield.h" | 14 #include "views/controls/textfield/textfield.h" |
15 #include "views/focus/focus_manager.h" | 15 #include "views/focus/focus_manager.h" |
16 | 16 |
17 class BrowserView; | 17 class BrowserView; |
18 class DropdownBarView; | 18 class DropdownBarView; |
19 class TabContents; | 19 class TabContents; |
20 | 20 |
21 namespace ui { | 21 namespace ui { |
22 class SlideAnimation; | 22 class SlideAnimation; |
23 } | 23 } |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 scoped_ptr<views::Widget> host_; | 182 scoped_ptr<views::Widget> host_; |
183 | 183 |
184 // A flag to manually manage visibility. GTK/X11 is asynchronous and | 184 // A flag to manually manage visibility. GTK/X11 is asynchronous and |
185 // the state of the widget can be out of sync. | 185 // the state of the widget can be out of sync. |
186 bool is_visible_; | 186 bool is_visible_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost); | 188 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost); |
189 }; | 189 }; |
190 | 190 |
191 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ | 191 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ |
OLD | NEW |