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

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

Issue 2415633002: TabbedPane: refactor away manual layout and selected_tab_index_ (Closed)
Patch Set: nits for msw Created 4 years, 2 months 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
Index: ui/views/controls/tabbed_pane/tabbed_pane.h
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.h b/ui/views/controls/tabbed_pane/tabbed_pane.h
index 44c48bb232a246a38443d833f5e71a8d3d740528..af41d969f9291220be61cd500bbd4ca45e0148d3 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.h
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.h
@@ -30,7 +30,9 @@ class VIEWS_EXPORT TabbedPane : public View {
TabbedPaneListener* listener() const { return listener_; }
void set_listener(TabbedPaneListener* listener) { listener_ = listener; }
- int selected_tab_index() const { return selected_tab_index_; }
+ // Returns the index of the currently selected tab, or -1 if no tab is
+ // selected.
+ int GetSelectedTabIndex() const;
// Returns the number of tabs.
int GetTabCount();
@@ -118,7 +120,6 @@ class Tab : public View {
void OnMouseExited(const ui::MouseEvent& event) override;
void OnGestureEvent(ui::GestureEvent* event) override;
gfx::Size GetPreferredSize() const override;
- void Layout() override;
const char* GetClassName() const override;
void OnFocus() override;
void OnBlur() override;
@@ -130,9 +131,6 @@ class Tab : public View {
// Called whenever |tab_state_| changes.
virtual void OnStateChanged();
- // Returns whether the containing TabStrip has focus.
- bool ContainerHasFocus();
-
private:
enum TabState {
TAB_INACTIVE,
« no previous file with comments | « chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698