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

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: 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 | 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const string16& display_text, size_t user_text_length) OVERRIDE; 115 const string16& display_text, size_t user_text_length) OVERRIDE;
116 virtual void OnRevertTemporaryText() OVERRIDE; 116 virtual void OnRevertTemporaryText() OVERRIDE;
117 virtual void OnBeforePossibleChange() OVERRIDE; 117 virtual void OnBeforePossibleChange() OVERRIDE;
118 virtual bool OnAfterPossibleChange() OVERRIDE; 118 virtual bool OnAfterPossibleChange() OVERRIDE;
119 virtual gfx::NativeView GetNativeView() const OVERRIDE; 119 virtual gfx::NativeView GetNativeView() const OVERRIDE;
120 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; 120 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE;
121 virtual void SetInstantSuggestion(const string16& input) OVERRIDE; 121 virtual void SetInstantSuggestion(const string16& input) OVERRIDE;
122 virtual string16 GetInstantSuggestion() const OVERRIDE; 122 virtual string16 GetInstantSuggestion() const OVERRIDE;
123 virtual int TextWidth() const OVERRIDE; 123 virtual int TextWidth() const OVERRIDE;
124 virtual bool IsImeComposing() const OVERRIDE; 124 virtual bool IsImeComposing() const OVERRIDE;
125 virtual gfx::Rect GetBounds() const OVERRIDE;
125 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE; 126 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE;
126 virtual views::View* AddToView(views::View* parent) OVERRIDE; 127 virtual views::View* AddToView(views::View* parent) OVERRIDE;
127 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 128 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
128 virtual gfx::Font GetFont() OVERRIDE; 129 virtual gfx::Font GetFont() OVERRIDE;
129 virtual int WidthOfTextAfterCursor() OVERRIDE; 130 virtual int WidthOfTextAfterCursor() OVERRIDE;
130 131
131 // views::TextfieldController: 132 // views::TextfieldController:
132 virtual void ContentsChanged(views::Textfield* sender, 133 virtual void ContentsChanged(views::Textfield* sender,
133 const string16& new_contents) OVERRIDE; 134 const string16& new_contents) OVERRIDE;
134 virtual bool HandleKeyEvent(views::Textfield* sender, 135 virtual bool HandleKeyEvent(views::Textfield* sender,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Should we select all the text when we see the mouse button get released? 201 // Should we select all the text when we see the mouse button get released?
201 // We select in response to a click that focuses the omnibox, but we defer 202 // We select in response to a click that focuses the omnibox, but we defer
202 // until release, setting this variable back to false if we saw a drag, to 203 // until release, setting this variable back to false if we saw a drag, to
203 // allow the user to select just a portion of the text. 204 // allow the user to select just a portion of the text.
204 bool select_all_on_mouse_release_; 205 bool select_all_on_mouse_release_;
205 206
206 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 207 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
207 }; 208 };
208 209
209 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 210 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698