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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 8527015: Fix omnibox mouse click highlight/word select/focus issue in aura build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix minor coding style issue. Created 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698