| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 158 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 159 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; | 159 bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) override; |
| 160 void GetAccessibleState(ui::AXViewState* state) override; | 160 void GetAccessibleState(ui::AXViewState* state) override; |
| 161 void OnFocus() override; | 161 void OnFocus() override; |
| 162 void OnBlur() override; | 162 void OnBlur() override; |
| 163 bool IsCommandIdEnabled(int command_id) const override; | 163 bool IsCommandIdEnabled(int command_id) const override; |
| 164 base::string16 GetSelectionClipboardText() const override; | 164 base::string16 GetSelectionClipboardText() const override; |
| 165 | 165 |
| 166 // chromeos::input_method::InputMethodManager::CandidateWindowObserver: | 166 // chromeos::input_method::InputMethodManager::CandidateWindowObserver: |
| 167 #if defined(OS_CHROMEOS) | 167 #if defined(OS_CHROMEOS) |
| 168 virtual void CandidateWindowOpened( | 168 void CandidateWindowOpened( |
| 169 chromeos::input_method::InputMethodManager* manager) override; | 169 chromeos::input_method::InputMethodManager* manager) override; |
| 170 virtual void CandidateWindowClosed( | 170 void CandidateWindowClosed( |
| 171 chromeos::input_method::InputMethodManager* manager) override; | 171 chromeos::input_method::InputMethodManager* manager) override; |
| 172 #endif | 172 #endif |
| 173 | 173 |
| 174 // views::TextfieldController: | 174 // views::TextfieldController: |
| 175 void ContentsChanged(views::Textfield* sender, | 175 void ContentsChanged(views::Textfield* sender, |
| 176 const base::string16& new_contents) override; | 176 const base::string16& new_contents) override; |
| 177 bool HandleKeyEvent(views::Textfield* sender, | 177 bool HandleKeyEvent(views::Textfield* sender, |
| 178 const ui::KeyEvent& key_event) override; | 178 const ui::KeyEvent& key_event) override; |
| 179 void OnBeforeUserAction(views::Textfield* sender) override; | 179 void OnBeforeUserAction(views::Textfield* sender) override; |
| 180 void OnAfterUserAction(views::Textfield* sender) override; | 180 void OnAfterUserAction(views::Textfield* sender) override; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // and gets a tap. So we use this variable to remember focus state before tap. | 227 // and gets a tap. So we use this variable to remember focus state before tap. |
| 228 bool select_all_on_gesture_tap_; | 228 bool select_all_on_gesture_tap_; |
| 229 | 229 |
| 230 // Used to bind callback functions to this object. | 230 // Used to bind callback functions to this object. |
| 231 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; | 231 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; |
| 232 | 232 |
| 233 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 233 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 236 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| OLD | NEW |