OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const CHARRANGE selection; | 55 const CHARRANGE selection; |
56 const CHARRANGE saved_selection_for_focus_change; | 56 const CHARRANGE saved_selection_for_focus_change; |
57 }; | 57 }; |
58 | 58 |
59 DECLARE_WND_SUPERCLASS(L"Chrome_OmniboxView", MSFTEDIT_CLASS); | 59 DECLARE_WND_SUPERCLASS(L"Chrome_OmniboxView", MSFTEDIT_CLASS); |
60 | 60 |
61 OmniboxViewWin(OmniboxEditController* controller, | 61 OmniboxViewWin(OmniboxEditController* controller, |
62 LocationBarView* parent_view, | 62 LocationBarView* parent_view, |
63 CommandUpdater* command_updater, | 63 CommandUpdater* command_updater, |
64 bool popup_window_mode, | 64 bool popup_window_mode, |
65 const gfx::FontList& font_list, | 65 const gfx::FontList& font_list); |
66 int font_y_offset); | |
67 ~OmniboxViewWin(); | 66 ~OmniboxViewWin(); |
68 | 67 |
69 // Gets the relative window for the specified native view. | 68 // Gets the relative window for the specified native view. |
70 static gfx::NativeView GetRelativeWindowForNativeView( | 69 static gfx::NativeView GetRelativeWindowForNativeView( |
71 gfx::NativeView edit_native_view); | 70 gfx::NativeView edit_native_view); |
72 | 71 |
73 views::View* parent_view() const; | 72 views::View* parent_view() const; |
74 | 73 |
75 // OmniboxView: | 74 // OmniboxView: |
76 virtual void SaveStateToTab(content::WebContents* tab) OVERRIDE; | 75 virtual void SaveStateToTab(content::WebContents* tab) OVERRIDE; |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 // The native view host. | 510 // The native view host. |
512 views::NativeViewHost* native_view_host_; | 511 views::NativeViewHost* native_view_host_; |
513 | 512 |
514 // TSF related event router. | 513 // TSF related event router. |
515 scoped_ptr<ui::TSFEventRouter> tsf_event_router_; | 514 scoped_ptr<ui::TSFEventRouter> tsf_event_router_; |
516 | 515 |
517 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 516 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
518 }; | 517 }; |
519 | 518 |
520 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 519 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |