summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/new_tab_ui.h
diff options
context:
space:
mode:
authorglen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 23:27:13 +0000
committerglen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 23:27:13 +0000
commit652bcad9d05b36b4905b896bcf93628e18647893 (patch)
tree2b2b53e41b766c48f5c189c27e9e7fff16b1824b /chrome/browser/dom_ui/new_tab_ui.h
parenteaea8ab540171542f7c1ac6f6ce47130da5d1a0e (diff)
downloadchromium_src-652bcad9d05b36b4905b896bcf93628e18647893.zip
chromium_src-652bcad9d05b36b4905b896bcf93628e18647893.tar.gz
chromium_src-652bcad9d05b36b4905b896bcf93628e18647893.tar.bz2
Stop the new tab page fading in if it's not your startup tab.
BUG=1295355 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/new_tab_ui.h')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.h b/chrome/browser/dom_ui/new_tab_ui.h
index e7adf4c..71a4f50 100644
--- a/chrome/browser/dom_ui/new_tab_ui.h
+++ b/chrome/browser/dom_ui/new_tab_ui.h
@@ -54,17 +54,19 @@ bool NewTabUIHandleURL(GURL* url, TabContentsType* result_type);
class NewTabHTMLSource : public ChromeURLDataManager::DataSource {
public:
- // Creates our datasource and sets our user message to a specific message
- // from our string bundle.
- NewTabHTMLSource(int message_id);
+ NewTabHTMLSource();
// Called when the network layer has requested a resource underneath
// the path we registered.
virtual void StartDataRequest(const std::string& path, int request_id);
+ // Setters and getters for first_view.
+ static void set_first_view(bool first_view) { first_view_ = first_view; }
+ static bool first_view() { return first_view_; }
private:
- // The ID of the message from our string bundle to display to the user.
- int message_id_;
+ // Whether this is the is the first viewing of the new tab page and
+ // we think it is the user's startup page.
+ static bool first_view_;
DISALLOW_EVIL_CONSTRUCTORS(NewTabHTMLSource);
};
@@ -306,7 +308,6 @@ class NewTabUIContents : public DOMUIHost {
// Clicking a URL on the page should count as an autobookmark click.
virtual void RequestOpenURL(const GURL& url,
WindowOpenDisposition disposition);
-
private:
// The message id that should be displayed in this NewTabUIContents
// instance's motd area.