Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: views/controls/tabbed_pane/tabbed_pane.h

Issue 8658009: views: Move tabbed_pane directory to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix native_tabbed_pane_wrapper.h Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/tabbed_pane/native_tabbed_pane_wrapper.h ('k') | views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tabbed_pane/tabbed_pane.h
diff --git a/views/controls/tabbed_pane/tabbed_pane.h b/views/controls/tabbed_pane/tabbed_pane.h
deleted file mode 100644
index 6161d763f53424b57fc77ac87cf1fa5fdd1bc284..0000000000000000000000000000000000000000
--- a/views/controls/tabbed_pane/tabbed_pane.h
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_CONTROLS_TABBED_PANE_H_
-#define VIEWS_CONTROLS_TABBED_PANE_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/string16.h"
-#include "views/view.h"
-
-namespace views {
-
-class NativeTabbedPaneWrapper;
-class TabbedPaneListener;
-
-// TabbedPane is a view that shows tabs. When the user clicks on a tab, the
-// associated view is displayed.
-class VIEWS_EXPORT TabbedPane : public View {
- public:
- TabbedPane();
- virtual ~TabbedPane();
-
- TabbedPaneListener* listener() const { return listener_; }
- void set_listener(TabbedPaneListener* listener) { listener_ = listener; }
-
- NativeTabbedPaneWrapper* native_wrapper() const {
- return native_tabbed_pane_;
- }
-
- // Returns the number of tabs.
- int GetTabCount();
-
- // Returns the index of the selected tab.
- int GetSelectedTabIndex();
-
- // Returns the contents of the selected tab.
- View* GetSelectedTab();
-
- // Adds a new tab at the end of this TabbedPane with the specified |title|.
- // |contents| is the view displayed when the tab is selected and is owned by
- // the TabbedPane.
- void AddTab(const string16& title, View* contents);
-
- // Adds a new tab at |index| with |title|.
- // |contents| is the view displayed when the tab is selected and is owned by
- // the TabbedPane. If |select_if_first_tab| is true and the tabbed pane is
- // currently empty, the new tab is selected. If you pass in false for
- // |select_if_first_tab| you need to explicitly invoke SelectTabAt, otherwise
- // the tabbed pane will not have a valid selection.
- void AddTabAtIndex(int index,
- const string16& title,
- View* contents,
- bool select_if_first_tab);
-
- // Removes the tab at |index| and returns the associated content view.
- // The caller becomes the owner of the returned view.
- View* RemoveTabAtIndex(int index);
-
- // Selects the tab at |index|, which must be valid.
- void SelectTabAt(int index);
-
- void SetAccessibleName(const string16& name);
-
- // View:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
-
- protected:
- // The object that actually implements the tabbed-pane.
- // Protected for tests access.
- NativeTabbedPaneWrapper* native_tabbed_pane_;
-
- private:
- // The tabbed-pane's class name.
- static const char kViewClassName[];
-
- // We support Ctrl+Tab and Ctrl+Shift+Tab to navigate tabbed option pages.
- void LoadAccelerators();
-
- // View:
- virtual void Layout() OVERRIDE;
- virtual void ViewHierarchyChanged(bool is_add,
- View* parent,
- View* child) OVERRIDE;
- // Handles Ctrl+Tab and Ctrl+Shift+Tab navigation of pages.
- virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
- virtual std::string GetClassName() const OVERRIDE;
- virtual void OnFocus() OVERRIDE;
- virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
- virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
-
- // The listener we notify about tab selection changes.
- TabbedPaneListener* listener_;
-
- // The accessible name of this view.
- string16 accessible_name_;
-
- DISALLOW_COPY_AND_ASSIGN(TabbedPane);
-};
-
-} // namespace views
-
-#endif // VIEWS_CONTROLS_TABBED_PANE_H_
« no previous file with comments | « views/controls/tabbed_pane/native_tabbed_pane_wrapper.h ('k') | views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698