| OLD | NEW |
| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 gfx::RenderText* GetRenderText() { | 63 gfx::RenderText* GetRenderText() { |
| 64 return views::Textfield::GetRenderText(); | 64 return views::Textfield::GetRenderText(); |
| 65 } | 65 } |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 // OmniboxView: | 68 // OmniboxView: |
| 69 void SaveStateToTab(content::WebContents* tab) override; | 69 void SaveStateToTab(content::WebContents* tab) override; |
| 70 void OnTabChanged(const content::WebContents* web_contents) override; | 70 void OnTabChanged(const content::WebContents* web_contents) override; |
| 71 void ResetTabState(content::WebContents* web_contents) override; | 71 void ResetTabState(content::WebContents* web_contents) override; |
| 72 void Update() override; | 72 void Update() override; |
| 73 void UpdatePlaceholderText() override; | |
| 74 base::string16 GetText() const override; | 73 base::string16 GetText() const override; |
| 75 void SetUserText(const base::string16& text, | 74 void SetUserText(const base::string16& text, |
| 76 const base::string16& display_text, | 75 const base::string16& display_text, |
| 77 bool update_popup) override; | 76 bool update_popup) override; |
| 78 void SetForcedQuery() override; | 77 void SetForcedQuery() override; |
| 79 void GetSelectionBounds(base::string16::size_type* start, | 78 void GetSelectionBounds(base::string16::size_type* start, |
| 80 base::string16::size_type* end) const override; | 79 base::string16::size_type* end) const override; |
| 81 void SelectAll(bool reversed) override; | 80 void SelectAll(bool reversed) override; |
| 82 void RevertAll() override; | 81 void RevertAll() override; |
| 83 void SetFocus() override; | 82 void SetFocus() override; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // painted. Used to measure omnibox responsiveness with a histogram. | 233 // painted. Used to measure omnibox responsiveness with a histogram. |
| 235 base::TimeTicks insert_char_time_; | 234 base::TimeTicks insert_char_time_; |
| 236 | 235 |
| 237 // Used to bind callback functions to this object. | 236 // Used to bind callback functions to this object. |
| 238 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; | 237 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; |
| 239 | 238 |
| 240 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 239 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
| 241 }; | 240 }; |
| 242 | 241 |
| 243 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 242 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| OLD | NEW |