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

Side by Side Diff: chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.h

Issue 8221027: Make views::Label and views::Link auto-color themselves to be readable over their background colo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_
6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_ 6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/search_engines/template_url_fetcher_callbacks.h" 10 #include "chrome/browser/search_engines/template_url_fetcher_callbacks.h"
11 #include "content/common/notification_observer.h" 11 #include "content/common/notification_observer.h"
12 #include "content/common/notification_registrar.h" 12 #include "content/common/notification_registrar.h"
13 13
14 class SearchEngineTabHelper; 14 class SearchEngineTabHelper;
15 class TabContents; 15 class TabContents;
16 16
17 // Callbacks which display UI for the TemplateURLFetcher. 17 // Callbacks which display UI for the TemplateURLFetcher.
18 class TemplateURLFetcherUICallbacks : public TemplateURLFetcherCallbacks, 18 class TemplateURLFetcherUICallbacks : public TemplateURLFetcherCallbacks,
19 public NotificationObserver { 19 public NotificationObserver {
20 public: 20 public:
21 TemplateURLFetcherUICallbacks(SearchEngineTabHelper* tab_helper, 21 TemplateURLFetcherUICallbacks(SearchEngineTabHelper* tab_helper,
22 TabContents* tab_contents); 22 TabContents* tab_contents);
23 virtual ~TemplateURLFetcherUICallbacks(); 23 virtual ~TemplateURLFetcherUICallbacks();
24 24
25 // TemplateURLFetcherCallback implementation. 25 // TemplateURLFetcherCallback implementation.
26 virtual void ConfirmSetDefaultSearchProvider( 26 virtual void ConfirmSetDefaultSearchProvider(
27 TemplateURL* template_url, 27 TemplateURL* template_url,
28 TemplateURLService* template_url_service); 28 Profile* profile);
29 virtual void ConfirmAddSearchProvider( 29 virtual void ConfirmAddSearchProvider(
30 TemplateURL* template_url, 30 TemplateURL* template_url,
31 Profile* profile); 31 Profile* profile);
32 32
33 // NotificationObserver: 33 // NotificationObserver:
34 virtual void Observe(int type, 34 virtual void Observe(int type,
35 const NotificationSource& source, 35 const NotificationSource& source,
36 const NotificationDetails& details); 36 const NotificationDetails& details);
37 37
38 private: 38 private:
39 // The SearchEngineTabHelper where this request originated. Can be NULL if the 39 // The SearchEngineTabHelper where this request originated. Can be NULL if the
40 // originating tab is closed. If NULL, the engine is not added. 40 // originating tab is closed. If NULL, the engine is not added.
41 SearchEngineTabHelper* source_; 41 SearchEngineTabHelper* source_;
42 42
43 // The TabContents where this request originated. 43 // The TabContents where this request originated.
44 TabContents* tab_contents_; 44 TabContents* tab_contents_;
45 45
46 // Handles registering for our notifications. 46 // Handles registering for our notifications.
47 NotificationRegistrar registrar_; 47 NotificationRegistrar registrar_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(TemplateURLFetcherUICallbacks); 49 DISALLOW_COPY_AND_ASSIGN(TemplateURLFetcherUICallbacks);
50 }; 50 };
51 51
52 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_ 52 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_FETCHER_UI_CALLBACKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698