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

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

Issue 2688883002: Revert [MacViews] Implemented text context menu (Closed)
Patch Set: Created 3 years, 10 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 | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/controls/label.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_LABEL_H_ 5 #ifndef UI_VIEWS_CONTROLS_LABEL_H_
6 #define UI_VIEWS_CONTROLS_LABEL_H_ 6 #define UI_VIEWS_CONTROLS_LABEL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 FRIEND_TEST_ALL_PREFIXES(LabelTest, FocusBounds); 229 FRIEND_TEST_ALL_PREFIXES(LabelTest, FocusBounds);
230 FRIEND_TEST_ALL_PREFIXES(LabelTest, MultiLineSizingWithElide); 230 FRIEND_TEST_ALL_PREFIXES(LabelTest, MultiLineSizingWithElide);
231 friend class LabelSelectionTest; 231 friend class LabelSelectionTest;
232 232
233 // ContextMenuController overrides: 233 // ContextMenuController overrides:
234 void ShowContextMenuForView(View* source, 234 void ShowContextMenuForView(View* source,
235 const gfx::Point& point, 235 const gfx::Point& point,
236 ui::MenuSourceType source_type) override; 236 ui::MenuSourceType source_type) override;
237 237
238 // WordLookupClient overrides: 238 // WordLookupClient overrides:
239 bool GetDecoratedWordAndBaselineAtPoint(const gfx::Point& point, 239 bool GetDecoratedWordAtPoint(const gfx::Point& point,
240 gfx::DecoratedText* decorated_word, 240 gfx::DecoratedText* decorated_word,
241 gfx::Point* baseline_point) override; 241 gfx::Point* baseline_point) override;
242 bool GetDecoratedTextAndBaselineFromSelection(
243 gfx::DecoratedText* decorated_text,
244 gfx::Point* baseline_point) override;
245 242
246 // SelectionControllerDelegate overrides: 243 // SelectionControllerDelegate overrides:
247 gfx::RenderText* GetRenderTextForSelectionController() override; 244 gfx::RenderText* GetRenderTextForSelectionController() override;
248 bool IsReadOnly() const override; 245 bool IsReadOnly() const override;
249 bool SupportsDrag() const override; 246 bool SupportsDrag() const override;
250 bool HasTextBeingDragged() const override; 247 bool HasTextBeingDragged() const override;
251 void SetTextBeingDragged(bool value) override; 248 void SetTextBeingDragged(bool value) override;
252 int GetViewHeight() const override; 249 int GetViewHeight() const override;
253 int GetViewWidth() const override; 250 int GetViewWidth() const override;
254 int GetDragSelectionDelay() const override; 251 int GetDragSelectionDelay() const override;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Context menu related members. 350 // Context menu related members.
354 ui::SimpleMenuModel context_menu_contents_; 351 ui::SimpleMenuModel context_menu_contents_;
355 std::unique_ptr<views::MenuRunner> context_menu_runner_; 352 std::unique_ptr<views::MenuRunner> context_menu_runner_;
356 353
357 DISALLOW_COPY_AND_ASSIGN(Label); 354 DISALLOW_COPY_AND_ASSIGN(Label);
358 }; 355 };
359 356
360 } // namespace views 357 } // namespace views
361 358
362 #endif // UI_VIEWS_CONTROLS_LABEL_H_ 359 #endif // UI_VIEWS_CONTROLS_LABEL_H_
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698