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

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: AutofillPopupViewHelper 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 "base/memory/scoped_ptr.h"
14 #include "chrome/browser/ui/autofill/autofill_popup_view.h" 15 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
16 #include "chrome/browser/ui/autofill/autofill_popup_view_helper.h"
15 17
16 namespace gfx { 18 namespace gfx {
17 class Rect; 19 class Rect;
18 } 20 }
19 21
20 namespace autofill { 22 namespace autofill {
21 23
22 class AutofillPopupController; 24 class AutofillPopupController;
23 25
24 class AutofillPopupViewAndroid : public AutofillPopupView { 26 class AutofillPopupViewAndroid : public AutofillPopupView {
(...skipping 19 matching lines...) Expand all
44 const base::android::JavaParamRef<jobject>& obj); 46 const base::android::JavaParamRef<jobject>& obj);
45 47
46 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env); 48 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env);
47 49
48 protected: 50 protected:
49 // AutofillPopupView implementation. 51 // AutofillPopupView implementation.
50 void Show() override; 52 void Show() override;
51 void Hide() override; 53 void Hide() override;
52 void InvalidateRow(size_t row) override; 54 void InvalidateRow(size_t row) override;
53 void UpdateBoundsAndRedrawPopup() override; 55 void UpdateBoundsAndRedrawPopup() override;
56 int LineFromY(int y) override;
57 gfx::Rect GetPopupBounds() override;
54 58
55 private: 59 private:
56 ~AutofillPopupViewAndroid() override; 60 ~AutofillPopupViewAndroid() override;
57 61
62 scoped_ptr<AutofillPopupViewHelper> view_helper_;
63
58 AutofillPopupController* controller_; // weak. 64 AutofillPopupController* controller_; // weak.
59 65
60 // The index of the last item the user long-pressed (they will be shown a 66 // The index of the last item the user long-pressed (they will be shown a
61 // confirmation dialog). 67 // confirmation dialog).
62 int deleting_index_; 68 int deleting_index_;
63 69
64 // The corresponding java object. 70 // The corresponding java object.
65 base::android::ScopedJavaGlobalRef<jobject> java_object_; 71 base::android::ScopedJavaGlobalRef<jobject> java_object_;
66 72
67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); 73 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid);
68 }; 74 };
69 75
70 } // namespace autofill 76 } // namespace autofill
71 77
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 78 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698