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

Side by Side Diff: chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_model.h

Issue 2617543002: Create Desktop to iOS Promotion skeleton. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_MODEL_H_
6 #define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_MODEL_H_
7
8 #include <memory>
sky 2017/01/04 20:52:36 AFAICT you don't use this include.
mrefaat 2017/01/05 00:04:09 Done.
9
10 #include "base/macros.h"
11 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h"
sky 2017/01/04 20:52:36 Generally we forward declare when possible (it's i
mrefaat 2017/01/05 00:04:09 Done.
12
13 // This model provides data to the Desktop to mobile promotion and control the
14 // promotion actions.
15 class DesktopIOSPromotionModel {
sky 2017/01/04 20:52:37 How come you are naming this class as the model? T
mrefaat 2017/01/05 00:03:08 i thought first i'd name it Controller - but after
vasilii 2017/01/05 17:40:20 For the password manager there are two classes: Ma
mrefaat 2017/01/05 23:54:42 i changed it to be controller instead
16 public:
17 // Should be instantiated on the UI thread.
18 explicit DesktopIOSPromotionModel(
19 desktop_ios_promotion::PromotionEntryPoint entry_point);
20
sky 2017/01/04 20:52:37 Don't inline the destructor.
mrefaat 2017/01/05 00:03:08 Done.
21 // Called by the view code when "Send SMS" button is clicked by the user.
22 void OnSendSMSClicked();
23
24 // Called by the view code when "No Thanks" button is clicked by the user.
25 void OnNoThanksClicked();
26
27 private:
28
sky 2017/01/04 20:52:36 remove newline.
mrefaat 2017/01/05 00:03:08 Done.
29 desktop_ios_promotion::PromotionEntryPoint entry_point_;
sky 2017/01/04 20:52:36 const
mrefaat 2017/01/05 00:03:08 Done.
30
31 // (TODO): If needed verify that functions that affect the UI are done
32 // on the same thread.
33
34 DISALLOW_COPY_AND_ASSIGN(DesktopIOSPromotionModel);
35 };
36
37 #endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_DESKTOP_IOS_PROMOTION_MODEL_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698