| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 bool selected() const { return contents_->visible(); } | 114 bool selected() const { return contents_->visible(); } |
| 115 void SetSelected(bool selected); | 115 void SetSelected(bool selected); |
| 116 | 116 |
| 117 // Overridden from View: | 117 // Overridden from View: |
| 118 bool OnMousePressed(const ui::MouseEvent& event) override; | 118 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 119 void OnMouseEntered(const ui::MouseEvent& event) override; | 119 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 120 void OnMouseExited(const ui::MouseEvent& event) override; | 120 void OnMouseExited(const ui::MouseEvent& event) override; |
| 121 void OnGestureEvent(ui::GestureEvent* event) override; | 121 void OnGestureEvent(ui::GestureEvent* event) override; |
| 122 gfx::Size GetPreferredSize() const override; | 122 gfx::Size GetPreferredSize() const override; |
| 123 const char* GetClassName() const override; | 123 const char* GetClassName() const override; |
| 124 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 124 void OnFocus() override; | 125 void OnFocus() override; |
| 125 void OnBlur() override; | 126 void OnBlur() override; |
| 126 bool OnKeyPressed(const ui::KeyEvent& event) override; | 127 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 127 | 128 |
| 128 protected: | 129 protected: |
| 129 Label* title() { return title_; } | 130 Label* title() { return title_; } |
| 130 | 131 |
| 131 // Called whenever |tab_state_| changes. | 132 // Called whenever |tab_state_| changes. |
| 132 virtual void OnStateChanged(); | 133 virtual void OnStateChanged(); |
| 133 | 134 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 146 TabState tab_state_; | 147 TabState tab_state_; |
| 147 // The content view associated with this tab. | 148 // The content view associated with this tab. |
| 148 View* contents_; | 149 View* contents_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(Tab); | 151 DISALLOW_COPY_AND_ASSIGN(Tab); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace views | 154 } // namespace views |
| 154 | 155 |
| 155 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ | 156 #endif // UI_VIEWS_CONTROLS_TABBED_PANE_TABBED_PANE_H_ |
| OLD | NEW |