| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ | 5 #ifndef VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ |
| 6 #define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ | 6 #define VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void CreateNativeControl(); | 42 virtual void CreateNativeControl(); |
| 43 virtual bool ProcessMessage(UINT message, | 43 virtual bool ProcessMessage(UINT message, |
| 44 WPARAM w_param, | 44 WPARAM w_param, |
| 45 LPARAM l_param, | 45 LPARAM l_param, |
| 46 LRESULT* result); | 46 LRESULT* result); |
| 47 | 47 |
| 48 // View overrides: | 48 // View overrides: |
| 49 virtual void Layout(); | 49 virtual void Layout(); |
| 50 virtual FocusTraversable* GetFocusTraversable(); | 50 virtual FocusTraversable* GetFocusTraversable(); |
| 51 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); | 51 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); |
| 52 virtual Widget* GetChildWidget(); | |
| 53 | 52 |
| 54 private: | 53 private: |
| 55 // Called upon creation of native control to initialize tabs that are added | 54 // Called upon creation of native control to initialize tabs that are added |
| 56 // before the native control is created. | 55 // before the native control is created. |
| 57 void InitializeTabs(); | 56 void InitializeTabs(); |
| 58 | 57 |
| 59 // Adds a tab with the given content to native control at the given index. | 58 // Adds a tab with the given content to native control at the given index. |
| 60 void AddNativeTab(int index, const std::wstring& title); | 59 void AddNativeTab(int index, const std::wstring& title); |
| 61 | 60 |
| 62 // Changes the contents view to the view associated with the tab at |index|. | 61 // Changes the contents view to the view associated with the tab at |index|. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 84 | 83 |
| 85 // The window displayed in the tab. | 84 // The window displayed in the tab. |
| 86 Widget* content_window_; | 85 Widget* content_window_; |
| 87 | 86 |
| 88 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneWin); | 87 DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneWin); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace views | 90 } // namespace views |
| 92 | 91 |
| 93 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ | 92 #endif // VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_ |
| OLD | NEW |