| 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_MESSAGE_BOX_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| 6 #define UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void SetCheckBoxLabel(const base::string16& label); | 76 void SetCheckBoxLabel(const base::string16& label); |
| 77 | 77 |
| 78 // Sets the state of the check-box. | 78 // Sets the state of the check-box. |
| 79 void SetCheckBoxSelected(bool selected); | 79 void SetCheckBoxSelected(bool selected); |
| 80 | 80 |
| 81 // Sets the text and the listener of the link. If |text| is empty, the link | 81 // Sets the text and the listener of the link. If |text| is empty, the link |
| 82 // is removed. | 82 // is removed. |
| 83 void SetLink(const base::string16& text, LinkListener* listener); | 83 void SetLink(const base::string16& text, LinkListener* listener); |
| 84 | 84 |
| 85 // View: | 85 // View: |
| 86 void GetAccessibleState(ui::AXViewState* state) override; | 86 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 // View: | 89 // View: |
| 90 void ViewHierarchyChanged( | 90 void ViewHierarchyChanged( |
| 91 const ViewHierarchyChangedDetails& details) override; | 91 const ViewHierarchyChangedDetails& details) override; |
| 92 // Handles Ctrl-C and writes the message in the system clipboard. | 92 // Handles Ctrl-C and writes the message in the system clipboard. |
| 93 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 93 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 94 const char* GetClassName() const override; | 94 const char* GetClassName() const override; |
| 95 | 95 |
| 96 private: | 96 private: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 119 | 119 |
| 120 // Spacing between rows in the grid layout. | 120 // Spacing between rows in the grid layout. |
| 121 int inter_row_vertical_spacing_; | 121 int inter_row_vertical_spacing_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); | 123 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace views | 126 } // namespace views |
| 127 | 127 |
| 128 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 128 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| OLD | NEW |