| 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_TABBED_PANE_TABBED_PANE_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 6 #define UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // and positive delta means rightwards. Returns whether the selection could be | 77 // and positive delta means rightwards. Returns whether the selection could be |
| 78 // moved by that amount; the only way this can fail is if there is only one | 78 // moved by that amount; the only way this can fail is if there is only one |
| 79 // tab. | 79 // tab. |
| 80 bool MoveSelectionBy(int delta); | 80 bool MoveSelectionBy(int delta); |
| 81 | 81 |
| 82 // Overridden from View: | 82 // Overridden from View: |
| 83 void Layout() override; | 83 void Layout() override; |
| 84 void ViewHierarchyChanged( | 84 void ViewHierarchyChanged( |
| 85 const ViewHierarchyChangedDetails& details) override; | 85 const ViewHierarchyChangedDetails& details) override; |
| 86 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 86 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 87 void GetAccessibleState(ui::AXViewState* state) override; | 87 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 88 | 88 |
| 89 // A listener notified when tab selection changes. Weak, not owned. | 89 // A listener notified when tab selection changes. Weak, not owned. |
| 90 TabbedPaneListener* listener_; | 90 TabbedPaneListener* listener_; |
| 91 | 91 |
| 92 // The tab strip and contents container. The child indices of these members | 92 // The tab strip and contents container. The child indices of these members |
| 93 // correspond to match each Tab with its respective content View. | 93 // correspond to match each Tab with its respective content View. |
| 94 TabStrip* tab_strip_; | 94 TabStrip* tab_strip_; |
| 95 View* contents_; | 95 View* contents_; |
| 96 | 96 |
| 97 // The selected tab index or -1 if invalid. | 97 // The selected tab index or -1 if invalid. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 TabState tab_state_; | 146 TabState tab_state_; |
| 147 // The content view associated with this tab. | 147 // The content view associated with this tab. |
| 148 View* contents_; | 148 View* contents_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(Tab); | 150 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace views | 153 } // namespace views |
| 154 | 154 |
| 155 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 155 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| OLD | NEW |