| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |