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

Side by Side Diff: chrome/browser/ui/views/tabs/browser_tab_strip_controller.h

Issue 2335203003: Add metrics to keep track of the tab activate/deactivate cycle (Closed)
Patch Set: Addressed comments Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void CreateNewTab() override; 71 void CreateNewTab() override;
72 void CreateNewTabWithLocation(const base::string16& loc) override; 72 void CreateNewTabWithLocation(const base::string16& loc) override;
73 bool IsIncognito() override; 73 bool IsIncognito() override;
74 void StackedLayoutMaybeChanged() override; 74 void StackedLayoutMaybeChanged() override;
75 void OnStartedDraggingTabs() override; 75 void OnStartedDraggingTabs() override;
76 void OnStoppedDraggingTabs() override; 76 void OnStoppedDraggingTabs() override;
77 void CheckFileSupported(const GURL& url) override; 77 void CheckFileSupported(const GURL& url) override;
78 SkColor GetToolbarTopSeparatorColor() const override; 78 SkColor GetToolbarTopSeparatorColor() const override;
79 79
80 // TabStripModelObserver implementation: 80 // TabStripModelObserver implementation:
81 void TabInsertedAt(content::WebContents* contents, 81 void TabInsertedAt(TabStripModel* tab_strip_model,
82 content::WebContents* contents,
82 int model_index, 83 int model_index,
83 bool is_active) override; 84 bool is_active) override;
84 void TabDetachedAt(content::WebContents* contents, int model_index) override; 85 void TabDetachedAt(content::WebContents* contents, int model_index) override;
85 void TabSelectionChanged(TabStripModel* tab_strip_model, 86 void TabSelectionChanged(TabStripModel* tab_strip_model,
86 const ui::ListSelectionModel& old_model) override; 87 const ui::ListSelectionModel& old_model) override;
87 void TabMoved(content::WebContents* contents, 88 void TabMoved(content::WebContents* contents,
88 int from_model_index, 89 int from_model_index,
89 int to_model_index) override; 90 int to_model_index) override;
90 void TabChangedAt(content::WebContents* contents, 91 void TabChangedAt(content::WebContents* contents,
91 int model_index, 92 int model_index,
92 TabChangeType change_type) override; 93 TabChangeType change_type) override;
93 void TabReplacedAt(TabStripModel* tab_strip_model, 94 void TabReplacedAt(TabStripModel* tab_strip_model,
94 content::WebContents* old_contents, 95 content::WebContents* old_contents,
95 content::WebContents* new_contents, 96 content::WebContents* new_contents,
96 int model_index) override; 97 int model_index) override;
97 void TabPinnedStateChanged(content::WebContents* contents, 98 void TabPinnedStateChanged(TabStripModel* tab_strip_model,
99 content::WebContents* contents,
98 int model_index) override; 100 int model_index) override;
99 void TabBlockedStateChanged(content::WebContents* contents, 101 void TabBlockedStateChanged(content::WebContents* contents,
100 int model_index) override; 102 int model_index) override;
101 103
102 protected: 104 protected:
103 // The context in which SetTabRendererDataFromModel is being called. 105 // The context in which SetTabRendererDataFromModel is being called.
104 enum TabStatus { 106 enum TabStatus {
105 NEW_TAB, 107 NEW_TAB,
106 EXISTING_TAB 108 EXISTING_TAB
107 }; 109 };
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 std::unique_ptr<ImmersiveRevealedLock> immersive_reveal_lock_; 163 std::unique_ptr<ImmersiveRevealedLock> immersive_reveal_lock_;
162 164
163 PrefChangeRegistrar local_pref_registrar_; 165 PrefChangeRegistrar local_pref_registrar_;
164 166
165 base::WeakPtrFactory<BrowserTabStripController> weak_ptr_factory_; 167 base::WeakPtrFactory<BrowserTabStripController> weak_ptr_factory_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController); 169 DISALLOW_COPY_AND_ASSIGN(BrowserTabStripController);
168 }; 170 };
169 171
170 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_ 172 #endif // CHROME_BROWSER_UI_VIEWS_TABS_BROWSER_TAB_STRIP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698