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

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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_NATIVE_TEXTFIELD_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/timer.h" 10 #include "base/timer.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual void MoveCaretTo(const gfx::Point& point) OVERRIDE; 85 virtual void MoveCaretTo(const gfx::Point& point) OVERRIDE;
86 virtual void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) OVERRIDE; 86 virtual void GetSelectionEndPoints(gfx::Rect* p1, gfx::Rect* p2) OVERRIDE;
87 virtual gfx::Rect GetBounds() OVERRIDE; 87 virtual gfx::Rect GetBounds() OVERRIDE;
88 virtual gfx::NativeView GetNativeView() OVERRIDE; 88 virtual gfx::NativeView GetNativeView() OVERRIDE;
89 virtual void ConvertPointToScreen(gfx::Point* point) OVERRIDE; 89 virtual void ConvertPointToScreen(gfx::Point* point) OVERRIDE;
90 virtual void ConvertPointFromScreen(gfx::Point* point) OVERRIDE; 90 virtual void ConvertPointFromScreen(gfx::Point* point) OVERRIDE;
91 virtual bool DrawsHandles() OVERRIDE; 91 virtual bool DrawsHandles() OVERRIDE;
92 virtual void OpenContextMenu(const gfx::Point anchor) OVERRIDE; 92 virtual void OpenContextMenu(const gfx::Point anchor) OVERRIDE;
93 93
94 // ContextMenuController overrides: 94 // ContextMenuController overrides:
95 virtual void ShowContextMenuForView(View* source, 95 virtual void ShowContextMenuForView(
96 const gfx::Point& point) OVERRIDE; 96 View* source,
97 const gfx::Point& point,
98 ui::ContextMenuSourceType source_type) OVERRIDE;
97 99
98 // Overridden from DragController: 100 // Overridden from DragController:
99 virtual void WriteDragDataForView(View* sender, 101 virtual void WriteDragDataForView(View* sender,
100 const gfx::Point& press_pt, 102 const gfx::Point& press_pt,
101 ui::OSExchangeData* data) OVERRIDE; 103 ui::OSExchangeData* data) OVERRIDE;
102 virtual int GetDragOperationsForView(View* sender, 104 virtual int GetDragOperationsForView(View* sender,
103 const gfx::Point& p) OVERRIDE; 105 const gfx::Point& p) OVERRIDE;
104 virtual bool CanStartDragForView(View* sender, 106 virtual bool CanStartDragForView(View* sender,
105 const gfx::Point& press_pt, 107 const gfx::Point& press_pt,
106 const gfx::Point& p) OVERRIDE; 108 const gfx::Point& p) OVERRIDE;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // obscured text. When the timer is running, the last typed char is shown 339 // obscured text. When the timer is running, the last typed char is shown
338 // and when the time expires, the last typed char is obscured. 340 // and when the time expires, the last typed char is obscured.
339 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; 341 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_;
340 342
341 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 343 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
342 }; 344 };
343 345
344 } // namespace views 346 } // namespace views
345 347
346 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 348 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698