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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Moves the selected text to the specified position. | 129 // Moves the selected text to the specified position. |
130 void MoveSelectedText(int new_position); | 130 void MoveSelectedText(int new_position); |
131 | 131 |
132 // Inserts the text at the specified position. | 132 // Inserts the text at the specified position. |
133 void InsertText(int position, const string16& text); | 133 void InsertText(int position, const string16& text); |
134 | 134 |
135 void set_force_hidden(bool force_hidden) { force_hidden_ = force_hidden; } | 135 void set_force_hidden(bool force_hidden) { force_hidden_ = force_hidden; } |
136 | 136 |
137 // Called before an accelerator is processed to give us a chance to override | 137 // Called before an accelerator is processed to give us a chance to override |
138 // it. | 138 // it. |
139 bool SkipDefaultKeyEventProcessing(const views::KeyEvent& event); | 139 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event); |
140 | 140 |
141 // Handler for external events passed in to us. The View that owns us may | 141 // Handler for external events passed in to us. The View that owns us may |
142 // send us events that we should treat as if they were events on us. | 142 // send us events that we should treat as if they were events on us. |
143 void HandleExternalMsg(UINT msg, UINT flags, const CPoint& screen_point); | 143 void HandleExternalMsg(UINT msg, UINT flags, const CPoint& screen_point); |
144 | 144 |
145 // CWindowImpl | 145 // CWindowImpl |
146 BEGIN_MSG_MAP(OmniboxViewWin) | 146 BEGIN_MSG_MAP(OmniboxViewWin) |
147 MSG_WM_CHAR(OnChar) | 147 MSG_WM_CHAR(OnChar) |
148 MSG_WM_CONTEXTMENU(OnContextMenu) | 148 MSG_WM_CONTEXTMENU(OnContextMenu) |
149 MSG_WM_COPY(OnCopy) | 149 MSG_WM_COPY(OnCopy) |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 // Instance of accessibility information and handling. | 499 // Instance of accessibility information and handling. |
500 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; | 500 mutable base::win::ScopedComPtr<IAccessible> autocomplete_accessibility_; |
501 | 501 |
502 // The native view host. | 502 // The native view host. |
503 views::NativeViewHost* native_view_host_; | 503 views::NativeViewHost* native_view_host_; |
504 | 504 |
505 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 505 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
506 }; | 506 }; |
507 | 507 |
508 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 508 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |