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_; |