| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // View: | 129 // View: |
| 130 gfx::Insets GetInsets() const override; | 130 gfx::Insets GetInsets() const override; |
| 131 int GetBaseline() const override; | 131 int GetBaseline() const override; |
| 132 gfx::Size GetPreferredSize() const override; | 132 gfx::Size GetPreferredSize() const override; |
| 133 gfx::Size GetMinimumSize() const override; | 133 gfx::Size GetMinimumSize() const override; |
| 134 int GetHeightForWidth(int w) const override; | 134 int GetHeightForWidth(int w) const override; |
| 135 void Layout() override; | 135 void Layout() override; |
| 136 const char* GetClassName() const override; | 136 const char* GetClassName() const override; |
| 137 View* GetTooltipHandlerForPoint(const gfx::Point& point) override; | 137 View* GetTooltipHandlerForPoint(const gfx::Point& point) override; |
| 138 bool CanProcessEventsWithinSubtree() const override; | 138 bool CanProcessEventsWithinSubtree() const override; |
| 139 void GetAccessibleState(ui::AXViewState* state) override; | 139 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 140 bool GetTooltipText(const gfx::Point& p, | 140 bool GetTooltipText(const gfx::Point& p, |
| 141 base::string16* tooltip) const override; | 141 base::string16* tooltip) const override; |
| 142 void OnEnabledChanged() override; | 142 void OnEnabledChanged() override; |
| 143 | 143 |
| 144 protected: | 144 protected: |
| 145 // Create a single RenderText instance to actually be painted. | 145 // Create a single RenderText instance to actually be painted. |
| 146 virtual std::unique_ptr<gfx::RenderText> CreateRenderText( | 146 virtual std::unique_ptr<gfx::RenderText> CreateRenderText( |
| 147 const base::string16& text, | 147 const base::string16& text, |
| 148 gfx::HorizontalAlignment alignment, | 148 gfx::HorizontalAlignment alignment, |
| 149 gfx::DirectionalityMode directionality, | 149 gfx::DirectionalityMode directionality, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // TODO(ckocagil): Remove is_first_paint_text_ before crbug.com/441028 is | 226 // TODO(ckocagil): Remove is_first_paint_text_ before crbug.com/441028 is |
| 227 // closed. | 227 // closed. |
| 228 bool is_first_paint_text_; | 228 bool is_first_paint_text_; |
| 229 | 229 |
| 230 DISALLOW_COPY_AND_ASSIGN(Label); | 230 DISALLOW_COPY_AND_ASSIGN(Label); |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 } // namespace views | 233 } // namespace views |
| 234 | 234 |
| 235 #endif // UI_VIEWS_CONTROLS_LABEL_H_ | 235 #endif // UI_VIEWS_CONTROLS_LABEL_H_ |
| OLD | NEW |