| Index: ui/views/controls/tabbed_pane/native_tabbed_pane_win.h
|
| diff --git a/ui/views/controls/tabbed_pane/native_tabbed_pane_win.h b/ui/views/controls/tabbed_pane/native_tabbed_pane_win.h
|
| deleted file mode 100644
|
| index 49cfd4afc142a7e87b956a7e464741ff7732d86e..0000000000000000000000000000000000000000
|
| --- a/ui/views/controls/tabbed_pane/native_tabbed_pane_win.h
|
| +++ /dev/null
|
| @@ -1,92 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_
|
| -#define UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_
|
| -
|
| -#include <vector>
|
| -
|
| -#include "ui/views/controls/native_control_win.h"
|
| -#include "ui/views/controls/tabbed_pane/native_tabbed_pane_wrapper.h"
|
| -
|
| -namespace views {
|
| -
|
| -class TabbedPane;
|
| -class TabLayout;
|
| -class Widget;
|
| -
|
| -class NativeTabbedPaneWin : public NativeControlWin,
|
| - public NativeTabbedPaneWrapper {
|
| - public:
|
| - explicit NativeTabbedPaneWin(TabbedPane* tabbed_pane);
|
| - virtual ~NativeTabbedPaneWin();
|
| -
|
| - // NativeTabbedPaneWrapper implementation:
|
| - virtual void AddTab(const string16& title, View* contents);
|
| - virtual void AddTabAtIndex(int index,
|
| - const string16& title,
|
| - View* contents,
|
| - bool select_if_first_tab);
|
| - virtual View* RemoveTabAtIndex(int index);
|
| - virtual void SelectTabAt(int index);
|
| - virtual int GetTabCount();
|
| - virtual int GetSelectedTabIndex();
|
| - virtual View* GetSelectedTab();
|
| - virtual View* GetView();
|
| - virtual void SetFocus();
|
| - virtual gfx::Size GetPreferredSize();
|
| - virtual gfx::NativeView GetTestingHandle() const;
|
| -
|
| - // NativeControlWin overrides.
|
| - virtual void CreateNativeControl();
|
| - virtual bool ProcessMessage(UINT message,
|
| - WPARAM w_param,
|
| - LPARAM l_param,
|
| - LRESULT* result);
|
| -
|
| - // View overrides:
|
| - virtual void Layout();
|
| - virtual FocusTraversable* GetFocusTraversable();
|
| - virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child);
|
| -
|
| - private:
|
| - // Called upon creation of native control to initialize tabs that are added
|
| - // before the native control is created.
|
| - void InitializeTabs();
|
| -
|
| - // Adds a tab with the given content to native control at the given index.
|
| - void AddNativeTab(int index, const string16& title);
|
| -
|
| - // Changes the contents view to the view associated with the tab at |index|.
|
| - // |invoke_listener| controls if this methold should invoke the
|
| - // Listener::TabSelectedAt callback.
|
| - void DoSelectTabAt(int index, boolean invoke_listener);
|
| -
|
| - // Resizes the HWND control to macth the size of the containing view.
|
| - void ResizeContents();
|
| -
|
| - // The tabbed-pane we are bound to.
|
| - TabbedPane* tabbed_pane_;
|
| -
|
| - // The layout manager we use for managing our tabs.
|
| - TabLayout* tab_layout_manager_;
|
| -
|
| - // The views associated with the different tabs.
|
| - std::vector<View*> tab_views_;
|
| -
|
| - // The tab's title strings.
|
| - std::vector<const string16> tab_titles_;
|
| -
|
| - // The index of the selected tab.
|
| - int selected_index_;
|
| -
|
| - // The window displayed in the tab.
|
| - Widget* content_window_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(NativeTabbedPaneWin);
|
| -};
|
| -
|
| -} // namespace views
|
| -
|
| -#endif // UI_VIEWS_CONTROLS_TABBED_PANE_NATIVE_TABBED_PANE_WIN_H_
|
|
|