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

Side by Side Diff: ui/views/controls/textfield/textfield.h

Issue 10968049: Disable right button drag in omnibox (Closed) Base URL: http://git.chromium.org/chromium/src.git@new
Patch Set: Disable right button dragging in Textfield" Created 8 years, 2 months 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
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield.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) 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 UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Overridden from View: 238 // Overridden from View:
239 virtual void Layout() OVERRIDE; 239 virtual void Layout() OVERRIDE;
240 virtual gfx::Size GetPreferredSize() OVERRIDE; 240 virtual gfx::Size GetPreferredSize() OVERRIDE;
241 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; 241 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
242 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE; 242 virtual bool SkipDefaultKeyEventProcessing(const ui::KeyEvent& e) OVERRIDE;
243 virtual void OnEnabledChanged() OVERRIDE; 243 virtual void OnEnabledChanged() OVERRIDE;
244 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; 244 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
245 virtual bool OnKeyPressed(const ui::KeyEvent& e) OVERRIDE; 245 virtual bool OnKeyPressed(const ui::KeyEvent& e) OVERRIDE;
246 virtual bool OnKeyReleased(const ui::KeyEvent& e) OVERRIDE; 246 virtual bool OnKeyReleased(const ui::KeyEvent& e) OVERRIDE;
247 virtual bool OnMouseDragged(const ui::MouseEvent& e) OVERRIDE;
247 virtual void OnFocus() OVERRIDE; 248 virtual void OnFocus() OVERRIDE;
248 virtual void OnBlur() OVERRIDE; 249 virtual void OnBlur() OVERRIDE;
249 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 250 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
250 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; 251 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
251 252
252 protected: 253 protected:
253 virtual void ViewHierarchyChanged(bool is_add, View* parent, 254 virtual void ViewHierarchyChanged(bool is_add, View* parent,
254 View* child) OVERRIDE; 255 View* child) OVERRIDE;
255 virtual std::string GetClassName() const OVERRIDE; 256 virtual std::string GetClassName() const OVERRIDE;
256 257
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 321
321 // The input type of this text field. 322 // The input type of this text field.
322 ui::TextInputType text_input_type_; 323 ui::TextInputType text_input_type_;
323 324
324 DISALLOW_COPY_AND_ASSIGN(Textfield); 325 DISALLOW_COPY_AND_ASSIGN(Textfield);
325 }; 326 };
326 327
327 } // namespace views 328 } // namespace views
328 329
329 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 330 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698