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

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

Issue 9649020: [Web Intents] WebIntentPickerModel uses URL instead of index to reference registered services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac fix 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 28 matching lines...) Expand all
39 39
40 // WebIntentPicker: 40 // WebIntentPicker:
41 virtual void Close() OVERRIDE; 41 virtual void Close() OVERRIDE;
42 42
43 // WebIntentPickerModelObserver implementation. 43 // WebIntentPickerModelObserver implementation.
44 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE; 44 virtual void OnModelChanged(WebIntentPickerModel* model) OVERRIDE;
45 virtual void OnFaviconChanged(WebIntentPickerModel* model, 45 virtual void OnFaviconChanged(WebIntentPickerModel* model,
46 size_t index) OVERRIDE; 46 size_t index) OVERRIDE;
47 virtual void OnExtensionIconChanged(WebIntentPickerModel* model, 47 virtual void OnExtensionIconChanged(WebIntentPickerModel* model,
48 const string16& extension_id) OVERRIDE; 48 const string16& extension_id) OVERRIDE;
49 virtual void OnInlineDisposition(WebIntentPickerModel* model) OVERRIDE; 49 virtual void OnInlineDisposition(WebIntentPickerModel* model,
50 const GURL& url) OVERRIDE;
50 51
51 private: 52 private:
52 ConstrainedWindow* window_; // Window for constrained sheet. Weak reference. 53 ConstrainedWindow* window_; // Window for constrained sheet. Weak reference.
53 54
54 // Weak pointer to the |delegate_| to notify about user choice/cancellation. 55 // Weak pointer to the |delegate_| to notify about user choice/cancellation.
55 WebIntentPickerDelegate* delegate_; 56 WebIntentPickerDelegate* delegate_;
56 57
57 // The picker model. Weak reference. 58 // The picker model. Weak reference.
58 WebIntentPickerModel* model_; 59 WebIntentPickerModel* model_;
59 60
(...skipping 16 matching lines...) Expand all
76 // Default constructor, for testing only. 77 // Default constructor, for testing only.
77 WebIntentPickerCocoa(); 78 WebIntentPickerCocoa();
78 79
79 // For testing access. 80 // For testing access.
80 friend class WebIntentPickerSheetControllerTest; 81 friend class WebIntentPickerSheetControllerTest;
81 82
82 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); 83 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa);
83 }; 84 };
84 85
85 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ 86 #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