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

Side by Side Diff: chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h

Issue 1652153003: Move toolbar_model_{impl,delegate}.{cc,h} to components/toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3
Patch Set: Rebase Created 4 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
7 7
8 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" 8 #include "components/toolbar/toolbar_model_delegate.h"
9 9
10 class Profile; 10 class Profile;
11 11
12 namespace content { 12 namespace content {
13 class NavigationEntry; 13 class NavigationEntry;
14 class NavigationController; 14 class NavigationController;
15 class WebContents;
15 } 16 }
16 17
17 // Partial implementation of ToolbarModelDelegate using //chrome API. 18 // Partial implementation of ToolbarModelDelegate using //chrome API.
18 class ChromeToolbarModelDelegate : public ToolbarModelDelegate { 19 class ChromeToolbarModelDelegate : public ToolbarModelDelegate {
19 public: 20 public:
20 // Returns active WebContents. 21 // Returns active WebContents.
21 virtual content::WebContents* GetActiveWebContents() const = 0; 22 virtual content::WebContents* GetActiveWebContents() const = 0;
22 23
23 protected: 24 protected:
24 ~ChromeToolbarModelDelegate() override; 25 ~ChromeToolbarModelDelegate() override;
(...skipping 17 matching lines...) Expand all
42 43
43 // Helper method to extract the navigation entry from the navigation 44 // Helper method to extract the navigation entry from the navigation
44 // controller. 45 // controller.
45 content::NavigationEntry* GetNavigationEntry() const; 46 content::NavigationEntry* GetNavigationEntry() const;
46 47
47 // Helper method to extract the profile from the navigation controller. 48 // Helper method to extract the profile from the navigation controller.
48 Profile* GetProfile() const; 49 Profile* GetProfile() const;
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 52 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698