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

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: 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
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 333 virtual void OnTextUpdated(const ui::Range& composition_range) OVERRIDE;
334 virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE; 334 virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE;
335 virtual void OnTsfStartComposition() OVERRIDE;
336 virtual void OnTsfEndComposition() OVERRIDE;
335 337
336 // Erases the portion of the selection in the font's y-adjustment area. For 338 // 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 339 // some reason the edit draws the selection rect here even though it's not
338 // part of the font. 340 // part of the font.
339 void EraseTopOfSelection(CDC* dc, 341 void EraseTopOfSelection(CDC* dc,
340 const CRect& client_rect, 342 const CRect& client_rect,
341 const CRect& paint_clip_rect); 343 const CRect& paint_clip_rect);
342 344
343 // Draws a slash across the scheme if desired. 345 // Draws a slash across the scheme if desired.
344 void DrawSlashForInsecureScheme(HDC hdc, 346 void DrawSlashForInsecureScheme(HDC hdc,
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // The native view host. 517 // The native view host.
516 views::NativeViewHost* native_view_host_; 518 views::NativeViewHost* native_view_host_;
517 519
518 // TSF related event router. 520 // TSF related event router.
519 scoped_ptr<ui::TsfEventRouter> tsf_event_router_; 521 scoped_ptr<ui::TsfEventRouter> tsf_event_router_;
520 522
521 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin); 523 DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
522 }; 524 };
523 525
524 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_ 526 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698