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

Side by Side Diff: chrome/browser/ui/cocoa/web_intent_picker_cocoa.h

Issue 9430025: [Web Intents] WebIntentsPickerController will now fetch icon for suggested extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COCOA_WEB_INTENT_PICKER_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 25 matching lines...) Expand all
36 36
37 void set_controller(WebIntentBubbleController* controller); 37 void set_controller(WebIntentBubbleController* controller);
38 38
39 // WebIntentPicker: 39 // WebIntentPicker:
40 virtual void Close() OVERRIDE; 40 virtual void Close() OVERRIDE;
41 41
42 // WebIntentPickerModelObserver implementation. 42 // WebIntentPickerModelObserver implementation.
43 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; 43 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE;
44 virtual void OnFaviconChanged(WebIntentPickerModel* model, 44 virtual void OnFaviconChanged(WebIntentPickerModel* model,
45 size_t index) OVERRIDE; 45 size_t index) OVERRIDE;
46 virtual void OnExtensionIconChanged(WebIntentPickerModel* model,
47 const string16& extension_id) OVERRIDE;
46 virtual void OnInlineDisposition(WebIntentPickerModel* model) OVERRIDE; 48 virtual void OnInlineDisposition(WebIntentPickerModel* model) OVERRIDE;
47 49
48 private: 50 private:
49 // Weak pointer to the |delegate_| to notify about user choice/cancellation. 51 // Weak pointer to the |delegate_| to notify about user choice/cancellation.
50 WebIntentPickerDelegate* delegate_; 52 WebIntentPickerDelegate* delegate_;
51 53
52 // The picker model. Weak reference. 54 // The picker model. Weak reference.
53 WebIntentPickerModel* model_; 55 WebIntentPickerModel* model_;
54 56
55 Browser* browser_; // The browser we're in. Weak Reference. 57 Browser* browser_; // The browser we're in. Weak Reference.
(...skipping 21 matching lines...) Expand all
77 // Default constructor, for testing only. 79 // Default constructor, for testing only.
78 WebIntentPickerCocoa(); 80 WebIntentPickerCocoa();
79 81
80 // For testing access. 82 // For testing access.
81 friend class WebIntentBubbleControllerTest; 83 friend class WebIntentBubbleControllerTest;
82 84
83 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); 85 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa);
84 }; 86 };
85 87
86 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ 88 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698