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

Side by Side Diff: chrome/browser/ui/browser_instant_controller.h

Issue 11416187: Commit instant loader when the instant page navigates away from instant URL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removing content/* changes. Created 8 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_INSTANT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/prefs/public/pref_change_registrar.h" 10 #include "base/prefs/public/pref_change_registrar.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Invoked by |instant_| to give the omnibox focus invisibly. 69 // Invoked by |instant_| to give the omnibox focus invisibly.
70 void FocusOmniboxInvisibly(); 70 void FocusOmniboxInvisibly();
71 71
72 // Invoked by |instant_| to get the currently active tab, over which the 72 // Invoked by |instant_| to get the currently active tab, over which the
73 // preview would be shown. 73 // preview would be shown.
74 content::WebContents* GetActiveWebContents() const; 74 content::WebContents* GetActiveWebContents() const;
75 75
76 // Invoked by |browser_| when the active tab changes. 76 // Invoked by |browser_| when the active tab changes.
77 void ActiveTabChanged(); 77 void ActiveTabChanged();
78 78
79 // Invoked by |browser_| when it is about to open a new URL.
80 void AboutToOpenURL(content::WebContents* web_contents, const GURL& url);
81
79 // Invoked by |BrowserWindow| during layout to set content height which is 82 // Invoked by |BrowserWindow| during layout to set content height which is
80 // used as theme area height, i.e. the height of the area that the entire 83 // used as theme area height, i.e. the height of the area that the entire
81 // theme background image should fill up. 84 // theme background image should fill up.
82 void SetContentHeight(int height); 85 void SetContentHeight(int height);
83 86
84 // Invoked by |instant_| to update theme information for preview. 87 // Invoked by |instant_| to update theme information for preview.
85 void UpdateThemeInfoForPreview(); 88 void UpdateThemeInfoForPreview();
86 89
87 private: 90 private:
88 // Sets the value of |instant_| based on value from profile. Invoked 91 // Sets the value of |instant_| based on value from profile. Invoked
(...skipping 28 matching lines...) Expand all
117 PrefChangeRegistrar profile_pref_registrar_; 120 PrefChangeRegistrar profile_pref_registrar_;
118 121
119 content::NotificationRegistrar registrar_; 122 content::NotificationRegistrar registrar_;
120 123
121 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); 124 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController);
122 }; 125 };
123 126
124 } // namespace chrome 127 } // namespace chrome
125 128
126 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 129 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698