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

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

Issue 10413044: Use existing model for initial layout, if we can. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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_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 15 matching lines...) Expand all
26 public: 26 public:
27 // |wrapper|, and |delegate| must not be NULL. 27 // |wrapper|, and |delegate| must not be NULL.
28 // |browser| should only be NULL for testing purposes. 28 // |browser| should only be NULL for testing purposes.
29 WebIntentPickerCocoa(TabContentsWrapper* wrapper, 29 WebIntentPickerCocoa(TabContentsWrapper* wrapper,
30 WebIntentPickerDelegate* delegate, 30 WebIntentPickerDelegate* delegate,
31 WebIntentPickerModel* model); 31 WebIntentPickerModel* model);
32 virtual ~WebIntentPickerCocoa(); 32 virtual ~WebIntentPickerCocoa();
33 33
34 void OnSheetDidEnd(NSWindow* sheet); 34 void OnSheetDidEnd(NSWindow* sheet);
35 35
36 WebIntentPickerModel* get_model() { return model_; }
Robert Sesek 2012/05/22 00:19:54 naming: Getters are just the name of the ivar, san
groby-ooo-7-16 2012/05/22 00:32:09 Done.
37
36 // WebIntentPickerDelegate forwarding API. 38 // WebIntentPickerDelegate forwarding API.
37 void OnCancelled(); 39 void OnCancelled();
38 void OnServiceChosen(size_t index); 40 void OnServiceChosen(size_t index);
39 void OnExtensionInstallRequested(const std::string& extension_id); 41 void OnExtensionInstallRequested(const std::string& extension_id);
40 void OnExtensionLinkClicked(const std::string& extension_id); 42 void OnExtensionLinkClicked(const std::string& extension_id);
41 void OnSuggestionsLinkClicked(); 43 void OnSuggestionsLinkClicked();
42 44
43 // WebIntentPicker implementation. 45 // WebIntentPicker implementation.
44 virtual void Close() OVERRIDE; 46 virtual void Close() OVERRIDE;
45 virtual void SetActionString(const string16& action) OVERRIDE; 47 virtual void SetActionString(const string16& action) OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Default constructor, for testing only. 86 // Default constructor, for testing only.
85 WebIntentPickerCocoa(); 87 WebIntentPickerCocoa();
86 88
87 // For testing access. 89 // For testing access.
88 friend class WebIntentSheetControllerBrowserTest; 90 friend class WebIntentSheetControllerBrowserTest;
89 91
90 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa); 92 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerCocoa);
91 }; 93 };
92 94
93 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_ 95 #endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698