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

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: Add static_cast<int> to fix compilation warning on Win 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/toolbar/toolbar_model_delegate.h" 9 #include "components/toolbar/toolbar_model_delegate.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace content { 13 namespace content {
14 class NavigationEntry; 14 class NavigationEntry;
15 class NavigationController; 15 class NavigationController;
16 class WebContents;
16 } 17 }
17 18
18 // Implementation of ToolbarModelDelegate for the Chrome embedder. It leaves out 19 // Implementation of ToolbarModelDelegate for the Chrome embedder. It leaves out
19 // how to fetch the active WebContents to its subclasses. 20 // how to fetch the active WebContents to its subclasses.
20 class ChromeToolbarModelDelegate : public ToolbarModelDelegate { 21 class ChromeToolbarModelDelegate : public ToolbarModelDelegate {
21 public: 22 public:
22 // Returns active WebContents. 23 // Returns active WebContents.
23 virtual content::WebContents* GetActiveWebContents() const = 0; 24 virtual content::WebContents* GetActiveWebContents() const = 0;
24 25
25 protected: 26 protected:
(...skipping 21 matching lines...) Expand all
47 // controller. 48 // controller.
48 content::NavigationEntry* GetNavigationEntry() const; 49 content::NavigationEntry* GetNavigationEntry() const;
49 50
50 // Helper method to extract the profile from the navigation controller. 51 // Helper method to extract the profile from the navigation controller.
51 Profile* GetProfile() const; 52 Profile* GetProfile() const;
52 53
53 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModelDelegate); 54 DISALLOW_COPY_AND_ASSIGN(ChromeToolbarModelDelegate);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_ 57 #endif // CHROME_BROWSER_UI_TOOLBAR_CHROME_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm ('k') | chrome/browser/ui/toolbar/toolbar_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698