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

Unified Diff: chrome/browser/ui/views/intent_picker_bubble_view.h

Issue 2134293002: Adding a ScrollView for IntentPickerBubbleView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the last test failing, moving the order of excecution and getting rid of the override SetUp(). Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/intent_picker_bubble_view.h
diff --git a/chrome/browser/ui/views/intent_picker_bubble_view.h b/chrome/browser/ui/views/intent_picker_bubble_view.h
index ae516f2db1caeb38cbbdf44a6de3a17e6637f78f..14c4ce86b84a4bbb27ae7d39d7a0d230f1dbbe5d 100644
--- a/chrome/browser/ui/views/intent_picker_bubble_view.h
+++ b/chrome/browser/ui/views/intent_picker_bubble_view.h
@@ -21,7 +21,6 @@ class NavigationHandle;
} // namespace content
namespace views {
-class EventMonitor;
class Label;
class LabelButton;
class View;
@@ -63,16 +62,21 @@ class IntentPickerBubbleView : public views::BubbleDialogDelegateView,
static void ShowBubble(content::NavigationHandle* handle,
const std::vector<NameAndIcon>& app_info,
const ThrottleCallback& throttle_cb);
+ ~IntentPickerBubbleView() override;
protected:
// views::BubbleDialogDelegateView overrides:
void Init() override;
private:
+ friend class IntentPickerBubbleViewTest;
Yusuke Sato 2016/07/19 10:23:58 Another way to allow the test to access internals
djacobo_ 2016/07/20 21:18:30 Done.
+ FRIEND_TEST_ALL_PREFIXES(IntentPickerBubbleViewTest, NullIcons);
Yusuke Sato 2016/07/20 08:05:54 Or, if you go with friend, can you remove line 73-
djacobo_ 2016/07/20 21:18:30 Done.
+ FRIEND_TEST_ALL_PREFIXES(IntentPickerBubbleViewTest, NonNullIcons);
+ FRIEND_TEST_ALL_PREFIXES(IntentPickerBubbleViewTest, LabelsPtrVectorSize);
IntentPickerBubbleView(const std::vector<NameAndIcon>& app_info,
ThrottleCallback throttle_cb,
- content::WebContents* web_contents);
- ~IntentPickerBubbleView() override;
+ content::WebContents* web_contents,
+ bool was_callback_run);
// views::BubbleDialogDelegateView overrides:
void OnWidgetDestroying(views::Widget* widget) override;
@@ -101,6 +105,7 @@ class IntentPickerBubbleView : public views::BubbleDialogDelegateView,
views::LabelButton* just_once_button_;
std::vector<NameAndIcon> app_info_;
+ std::vector<views::LabelButton*> app_label_ptr_;
Yusuke Sato 2016/07/19 10:23:58 Is this really necessary? I'm not familiar with Vi
djacobo_ 2016/07/20 21:18:30 Removed, opting for the GetViewByID() method you s
DISALLOW_COPY_AND_ASSIGN(IntentPickerBubbleView);
};

Powered by Google App Engine
This is Rietveld 408576698