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

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

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 months 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 | Annotate | Revision Log
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 323
324 virtual int GetOmniboxTextLength() const OVERRIDE; 324 virtual int GetOmniboxTextLength() const OVERRIDE;
325 325
326 // Parses the contents of the control for the scheme and the host name. 326 // Parses the contents of the control for the scheme and the host name.
327 // Highlights the scheme in green or red depending on it security level. 327 // Highlights the scheme in green or red depending on it security level.
328 // If a host name is found, it makes it visually stronger. 328 // If a host name is found, it makes it visually stronger.
329 virtual void EmphasizeURLComponents() OVERRIDE; 329 virtual void EmphasizeURLComponents() OVERRIDE;
330 330
331 // TSFEventRouter::Observer: 331 // TSFEventRouter::Observer:
332 virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE; 332 virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE;
333 virtual void OnTextUpdated(const ui::Range& composition_range) OVERRIDE; 333 virtual void OnTextUpdated(const gfx::Range& composition_range) OVERRIDE;
334 334
335 // Erases the portion of the selection in the font's y-adjustment area. For 335 // Erases the portion of the selection in the font's y-adjustment area. For
336 // some reason the edit draws the selection rect here even though it's not 336 // some reason the edit draws the selection rect here even though it's not
337 // part of the font. 337 // part of the font.
338 void EraseTopOfSelection(CDC* dc, 338 void EraseTopOfSelection(CDC* dc,
339 const CRect& client_rect, 339 const CRect& client_rect,
340 const CRect& paint_clip_rect); 340 const CRect& paint_clip_rect);
341 341
342 // Draws a slash across the scheme if desired. 342 // Draws a slash across the scheme if desired.
343 void DrawSlashForInsecureScheme(HDC hdc, 343 void DrawSlashForInsecureScheme(HDC hdc,
(...skipping 171 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 | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698