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

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

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after r171018 Created 8 years 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_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 const string16& display_text, size_t user_text_length) OVERRIDE; 118 const string16& display_text, size_t user_text_length) OVERRIDE;
119 virtual void OnRevertTemporaryText() OVERRIDE; 119 virtual void OnRevertTemporaryText() OVERRIDE;
120 virtual void OnBeforePossibleChange() OVERRIDE; 120 virtual void OnBeforePossibleChange() OVERRIDE;
121 virtual bool OnAfterPossibleChange() OVERRIDE; 121 virtual bool OnAfterPossibleChange() OVERRIDE;
122 virtual gfx::NativeView GetNativeView() const OVERRIDE; 122 virtual gfx::NativeView GetNativeView() const OVERRIDE;
123 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; 123 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE;
124 virtual void SetInstantSuggestion(const string16& input) OVERRIDE; 124 virtual void SetInstantSuggestion(const string16& input) OVERRIDE;
125 virtual string16 GetInstantSuggestion() const OVERRIDE; 125 virtual string16 GetInstantSuggestion() const OVERRIDE;
126 virtual int TextWidth() const OVERRIDE; 126 virtual int TextWidth() const OVERRIDE;
127 virtual bool IsImeComposing() const OVERRIDE; 127 virtual bool IsImeComposing() const OVERRIDE;
128 virtual gfx::Rect GetContainerBounds() const OVERRIDE;
128 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE; 129 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE;
129 virtual views::View* AddToView(views::View* parent) OVERRIDE; 130 virtual views::View* AddToView(views::View* parent) OVERRIDE;
130 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 131 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
131 virtual gfx::Font GetFont() OVERRIDE; 132 virtual gfx::Font GetFont() OVERRIDE;
132 virtual int WidthOfTextAfterCursor() OVERRIDE; 133 virtual int WidthOfTextAfterCursor() OVERRIDE;
133 134
134 // views::TextfieldController: 135 // views::TextfieldController:
135 virtual void ContentsChanged(views::Textfield* sender, 136 virtual void ContentsChanged(views::Textfield* sender,
136 const string16& new_contents) OVERRIDE; 137 const string16& new_contents) OVERRIDE;
137 virtual bool HandleKeyEvent(views::Textfield* sender, 138 virtual bool HandleKeyEvent(views::Textfield* sender,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Should we select all the text when we see the mouse button get released? 215 // Should we select all the text when we see the mouse button get released?
215 // We select in response to a click that focuses the omnibox, but we defer 216 // We select in response to a click that focuses the omnibox, but we defer
216 // until release, setting this variable back to false if we saw a drag, to 217 // until release, setting this variable back to false if we saw a drag, to
217 // allow the user to select just a portion of the text. 218 // allow the user to select just a portion of the text.
218 bool select_all_on_mouse_release_; 219 bool select_all_on_mouse_release_;
219 220
220 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 221 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
221 }; 222 };
222 223
223 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 224 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698