OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 virtual CommandUpdater* GetCommandUpdater() OVERRIDE; | 121 virtual CommandUpdater* GetCommandUpdater() OVERRIDE; |
122 virtual void SetInstantSuggestion(const string16& input, | 122 virtual void SetInstantSuggestion(const string16& input, |
123 bool animate_to_complete) OVERRIDE; | 123 bool animate_to_complete) OVERRIDE; |
124 virtual string16 GetInstantSuggestion() const OVERRIDE; | 124 virtual string16 GetInstantSuggestion() const OVERRIDE; |
125 virtual int TextWidth() const OVERRIDE; | 125 virtual int TextWidth() const OVERRIDE; |
126 virtual bool IsImeComposing() const OVERRIDE; | 126 virtual bool IsImeComposing() const OVERRIDE; |
127 virtual views::View* AddToView(views::View* parent) OVERRIDE; | 127 virtual views::View* AddToView(views::View* parent) OVERRIDE; |
128 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; | 128 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; |
129 | 129 |
130 // NotificationObserver: | 130 // NotificationObserver: |
131 virtual void Observe(NotificationType type, | 131 virtual void Observe(int type, |
132 const NotificationSource& source, | 132 const NotificationSource& source, |
133 const NotificationDetails& details) OVERRIDE; | 133 const NotificationDetails& details) OVERRIDE; |
134 | 134 |
135 // views::TextfieldController: | 135 // views::TextfieldController: |
136 virtual void ContentsChanged(views::Textfield* sender, | 136 virtual void ContentsChanged(views::Textfield* sender, |
137 const string16& new_contents) OVERRIDE; | 137 const string16& new_contents) OVERRIDE; |
138 virtual bool HandleKeyEvent(views::Textfield* sender, | 138 virtual bool HandleKeyEvent(views::Textfield* sender, |
139 const views::KeyEvent& key_event) OVERRIDE; | 139 const views::KeyEvent& key_event) OVERRIDE; |
140 virtual void OnBeforeUserAction(views::Textfield* sender) OVERRIDE; | 140 virtual void OnBeforeUserAction(views::Textfield* sender) OVERRIDE; |
141 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; | 141 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // TextStyles for URL decoration. They're owned by textfield_. | 199 // TextStyles for URL decoration. They're owned by textfield_. |
200 views::TextStyle* faded_text_style_; | 200 views::TextStyle* faded_text_style_; |
201 views::TextStyle* normal_text_style_; | 201 views::TextStyle* normal_text_style_; |
202 views::TextStyle* security_error_scheme_style_; | 202 views::TextStyle* security_error_scheme_style_; |
203 views::TextStyle* secure_scheme_style_; | 203 views::TextStyle* secure_scheme_style_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 205 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
206 }; | 206 }; |
207 | 207 |
208 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 208 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |