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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // click. Sadly, we need to clip slightly differently in this case. | 322 // click. Sadly, we need to clip slightly differently in this case. |
323 LONG ClipXCoordToVisibleText(LONG x, bool is_triple_click) const; | 323 LONG ClipXCoordToVisibleText(LONG x, bool is_triple_click) const; |
324 | 324 |
325 virtual int GetOmniboxTextLength() const OVERRIDE; | 325 virtual int GetOmniboxTextLength() const OVERRIDE; |
326 | 326 |
327 // Parses the contents of the control for the scheme and the host name. | 327 // Parses the contents of the control for the scheme and the host name. |
328 // Highlights the scheme in green or red depending on it security level. | 328 // Highlights the scheme in green or red depending on it security level. |
329 // If a host name is found, it makes it visually stronger. | 329 // If a host name is found, it makes it visually stronger. |
330 virtual void EmphasizeURLComponents() OVERRIDE; | 330 virtual void EmphasizeURLComponents() OVERRIDE; |
331 | 331 |
332 // TsfEventRouter::Observer | 332 // TsfEventRouter::Observer: |
333 virtual void OnTextUpdated() OVERRIDE; | |
334 virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE; | 333 virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE; |
| 334 virtual void OnTextUpdated(const ui::Range& composition_range) OVERRIDE; |
335 | 335 |
336 // Erases the portion of the selection in the font's y-adjustment area. For | 336 // Erases the portion of the selection in the font's y-adjustment area. For |
337 // some reason the edit draws the selection rect here even though it's not | 337 // some reason the edit draws the selection rect here even though it's not |
338 // part of the font. | 338 // part of the font. |
339 void EraseTopOfSelection(CDC* dc, | 339 void EraseTopOfSelection(CDC* dc, |
340 const CRect& client_rect, | 340 const CRect& client_rect, |
341 const CRect& paint_clip_rect); | 341 const CRect& paint_clip_rect); |
342 | 342 |
343 // Draws a slash across the scheme if desired. | 343 // Draws a slash across the scheme if desired. |
344 void DrawSlashForInsecureScheme(HDC hdc, | 344 void DrawSlashForInsecureScheme(HDC hdc, |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 // The native view host. | 515 // The native view host. |
516 views::NativeViewHost* native_view_host_; | 516 views::NativeViewHost* native_view_host_; |
517 | 517 |
518 // TSF related event router. | 518 // TSF related event router. |
519 scoped_ptr<ui::TsfEventRouter> tsf_event_router_; | 519 scoped_ptr<ui::TsfEventRouter> tsf_event_router_; |
520 | 520 |
521 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); | 521 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); |
522 }; | 522 }; |
523 | 523 |
524 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ | 524 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ |
OLD | NEW |