Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 11305002: Support TSF related event handling on NativeTextField (Closed) Base URL: http://git.chromium.org/chromium/src.git@findbar_fix
Patch Set: Address comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698