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

Side by Side Diff: chrome/browser/ui/startup/obsolete_os_info_bar.h

Issue 10690060: startup: Put it in chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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_STARTUP_OBSOLETE_OS_INFO_BAR_H_ 5 #ifndef CHROME_BROWSER_UI_STARTUP_OBSOLETE_OS_INFO_BAR_H_
6 #define CHROME_BROWSER_UI_STARTUP_OBSOLETE_OS_INFO_BAR_H_ 6 #define CHROME_BROWSER_UI_STARTUP_OBSOLETE_OS_INFO_BAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/tab_contents/link_infobar_delegate.h" 11 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 13
14 class InfoBarTabHelper; 14 class InfoBarTabHelper;
15 15
16 namespace browser { 16 namespace chrome {
17 17
18 // An infobar that is run with a string and a "Learn More" link. 18 // An infobar that is run with a string and a "Learn More" link.
19 class ObsoleteOSInfoBar : public LinkInfoBarDelegate { 19 class ObsoleteOSInfoBar : public LinkInfoBarDelegate {
20 public: 20 public:
21 ObsoleteOSInfoBar(InfoBarTabHelper* infobar_helper, 21 ObsoleteOSInfoBar(InfoBarTabHelper* infobar_helper,
22 const string16& message, 22 const string16& message,
23 const GURL& url); 23 const GURL& url);
24 virtual ~ObsoleteOSInfoBar(); 24 virtual ~ObsoleteOSInfoBar();
25 25
26 virtual string16 GetMessageTextWithOffset(size_t* link_offset) const OVERRIDE; 26 virtual string16 GetMessageTextWithOffset(size_t* link_offset) const OVERRIDE;
27 virtual string16 GetLinkText() const OVERRIDE; 27 virtual string16 GetLinkText() const OVERRIDE;
28 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 28 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
29 29
30 private: 30 private:
31 const string16 message_; 31 const string16 message_;
32 const GURL learn_more_url_; 32 const GURL learn_more_url_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(ObsoleteOSInfoBar); 34 DISALLOW_COPY_AND_ASSIGN(ObsoleteOSInfoBar);
35 }; 35 };
36 36
37 } // namespace browser 37 } // namespace chrome
38 38
39 #endif // CHROME_BROWSER_UI_STARTUP_OBSOLETE_OS_INFO_BAR_H_ 39 #endif // CHROME_BROWSER_UI_STARTUP_OBSOLETE_OS_INFO_BAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/startup/default_browser_prompt_win.cc ('k') | chrome/browser/ui/startup/obsolete_os_info_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698