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

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: patch 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(View* source,
96 const gfx::Point& point) OVERRIDE; 96 const gfx::Point& point,
97 ui::MenuSourceType source_type) OVERRIDE;
97 98
98 // Overridden from DragController: 99 // Overridden from DragController:
99 virtual void WriteDragDataForView(View* sender, 100 virtual void WriteDragDataForView(View* sender,
100 const gfx::Point& press_pt, 101 const gfx::Point& press_pt,
101 ui::OSExchangeData* data) OVERRIDE; 102 ui::OSExchangeData* data) OVERRIDE;
102 virtual int GetDragOperationsForView(View* sender, 103 virtual int GetDragOperationsForView(View* sender,
103 const gfx::Point& p) OVERRIDE; 104 const gfx::Point& p) OVERRIDE;
104 virtual bool CanStartDragForView(View* sender, 105 virtual bool CanStartDragForView(View* sender,
105 const gfx::Point& press_pt, 106 const gfx::Point& press_pt,
106 const gfx::Point& p) OVERRIDE; 107 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 338 // 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. 339 // and when the time expires, the last typed char is obscured.
339 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_; 340 base::OneShotTimer<NativeTextfieldViews> obscured_reveal_timer_;
340 341
341 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); 342 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews);
342 }; 343 };
343 344
344 } // namespace views 345 } // namespace views
345 346
346 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ 347 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698