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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 11418144: [Search] Implementation of the invisible focus on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@samarthlatest
Patch Set: ws 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.h b/chrome/browser/ui/views/omnibox/omnibox_view_win.h
index d3e7a6f9d8f6a31b946c58a7f808d68d9c34997a..1cf658239292b33e91428335eb36d8cd092206c2 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.h
@@ -97,6 +97,7 @@ class OmniboxViewWin
virtual void RevertAll() OVERRIDE;
virtual void UpdatePopup() OVERRIDE;
virtual void SetFocus() OVERRIDE;
+ virtual void SetInvisibleFocus() OVERRIDE;
virtual void OnTemporaryTextMaybeChanged(
const string16& display_text,
bool save_original_selection) OVERRIDE;
@@ -394,6 +395,14 @@ class OmniboxViewWin
bool ShouldEnableCopyURL() const;
void CopyURL();
+ // Depending on the visibility of the focus stored in the OmniboxEditModel,
+ // Sets the color of the caret to black or to the omnibox's background color,
+ // effectively hiding it.
+ void ApplyFocusVisibility();
+
+ // Height of the caret, used in the repainting of the caret in the omnibox.
+ int caret_height_;
+
// Handle of RichEdit dll.
static HMODULE loaded_library_module_;

Powered by Google App Engine
This is Rietveld 408576698