| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // Sets the colors of the text view according to the theme. | 55 // Sets the colors of the text view according to the theme. |
| 56 void SetBaseColor(); | 56 void SetBaseColor(); |
| 57 | 57 |
| 58 // Called after key even is handled either by HandleKeyEvent or by Textfield. | 58 // Called after key even is handled either by HandleKeyEvent or by Textfield. |
| 59 bool HandleAfterKeyEvent(const views::KeyEvent& event, bool handled); | 59 bool HandleAfterKeyEvent(const views::KeyEvent& event, bool handled); |
| 60 | 60 |
| 61 // Called when KeyRelease event is generated on textfield. | 61 // Called when KeyRelease event is generated on textfield. |
| 62 bool HandleKeyReleaseEvent(const views::KeyEvent& event); | 62 bool HandleKeyReleaseEvent(const views::KeyEvent& event); |
| 63 | 63 |
| 64 // Called when the mouse press event is generated on textfield. |
| 65 bool HandleMousePressEvent(const views::MouseEvent& event); |
| 66 |
| 64 // Called when Focus is set/unset on textfield. | 67 // Called when Focus is set/unset on textfield. |
| 65 void HandleFocusIn(); | 68 void HandleFocusIn(); |
| 66 void HandleFocusOut(); | 69 void HandleFocusOut(); |
| 67 | 70 |
| 68 // Implements views::View | 71 // Implements views::View |
| 69 virtual void Layout() OVERRIDE; | 72 virtual void Layout() OVERRIDE; |
| 70 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 73 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 71 virtual std::string GetClassName() const OVERRIDE; | 74 virtual std::string GetClassName() const OVERRIDE; |
| 72 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; | 75 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
| 73 | 76 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 ui::Range sel_before_change_; | 186 ui::Range sel_before_change_; |
| 184 bool ime_composing_before_change_; | 187 bool ime_composing_before_change_; |
| 185 | 188 |
| 186 // Was the delete key pressed with an empty selection at the end of the edit? | 189 // Was the delete key pressed with an empty selection at the end of the edit? |
| 187 bool delete_at_end_pressed_; | 190 bool delete_at_end_pressed_; |
| 188 | 191 |
| 189 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 192 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
| 190 }; | 193 }; |
| 191 | 194 |
| 192 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 195 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
| OLD | NEW |