OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ |
7 | 7 |
8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
11 #include "ui/gfx/geometry/rect_f.h" | 11 #include "ui/gfx/geometry/rect_f.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 struct NativeWebKeyboardEvent; | |
16 class RenderViewHost; | 15 class RenderViewHost; |
17 class WebContents; | 16 class WebContents; |
18 } | 17 } |
19 | 18 |
20 namespace autofill { | 19 namespace autofill { |
21 | 20 |
22 // Class that controls common functionality for Autofill style popups. Can | 21 // Class that controls common functionality for Autofill style popups. Can |
23 // determine the correct location of a popup of a desired size and can register | 22 // determine the correct location of a popup of a desired size and can register |
24 // a handler to key press events. | 23 // a handler to key press events. |
25 class PopupControllerCommon { | 24 class PopupControllerCommon { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 content::RenderViewHost* key_press_event_target_; | 70 content::RenderViewHost* key_press_event_target_; |
72 | 71 |
73 content::RenderWidgetHost::KeyPressEventCallback key_press_event_callback_; | 72 content::RenderWidgetHost::KeyPressEventCallback key_press_event_callback_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(PopupControllerCommon); | 74 DISALLOW_COPY_AND_ASSIGN(PopupControllerCommon); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace autofill | 77 } // namespace autofill |
79 | 78 |
80 #endif // CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ | 79 #endif // CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ |
OLD | NEW |