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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_popup_view_android.h

Issue 1570783003: [Autofill] Move functions from the AutofillPopupController to AutofillPopupLayoutModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove scoped_ptr and rename mac delegate Created 4 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
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_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "chrome/browser/ui/autofill/autofill_popup_view.h" 14 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
15 #include "chrome/browser/ui/autofill/autofill_popup_view_helper.h"
15 16
16 namespace gfx { 17 namespace gfx {
17 class Rect; 18 class Rect;
18 } 19 }
19 20
20 namespace autofill { 21 namespace autofill {
21 22
22 class AutofillPopupController; 23 class AutofillPopupController;
23 24
24 class AutofillPopupViewAndroid : public AutofillPopupView { 25 class AutofillPopupViewAndroid : public AutofillPopupView {
(...skipping 19 matching lines...) Expand all
44 const base::android::JavaParamRef<jobject>& obj); 45 const base::android::JavaParamRef<jobject>& obj);
45 46
46 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env); 47 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env);
47 48
48 protected: 49 protected:
49 // AutofillPopupView implementation. 50 // AutofillPopupView implementation.
50 void Show() override; 51 void Show() override;
51 void Hide() override; 52 void Hide() override;
52 void InvalidateRow(size_t row) override; 53 void InvalidateRow(size_t row) override;
53 void UpdateBoundsAndRedrawPopup() override; 54 void UpdateBoundsAndRedrawPopup() override;
55 int LineFromY(int y) override;
56 gfx::Rect GetPopupBounds() override;
54 57
55 private: 58 private:
56 ~AutofillPopupViewAndroid() override; 59 ~AutofillPopupViewAndroid() override;
57 60
61 AutofillPopupViewHelper view_helper_;
62
58 AutofillPopupController* controller_; // weak. 63 AutofillPopupController* controller_; // weak.
59 64
60 // The index of the last item the user long-pressed (they will be shown a 65 // The index of the last item the user long-pressed (they will be shown a
61 // confirmation dialog). 66 // confirmation dialog).
62 int deleting_index_; 67 int deleting_index_;
63 68
64 // The corresponding java object. 69 // The corresponding java object.
65 base::android::ScopedJavaGlobalRef<jobject> java_object_; 70 base::android::ScopedJavaGlobalRef<jobject> java_object_;
66 71
67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); 72 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid);
68 }; 73 };
69 74
70 } // namespace autofill 75 } // namespace autofill
71 76
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 77 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698