| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "chrome/browser/ui/views/intent_picker_bubble_view.h" | 5 #include "chrome/browser/ui/views/intent_picker_bubble_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "chrome/browser/chromeos/arc/arc_navigation_throttle.h" | 13 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" |
| 14 #include "chrome/test/base/browser_with_test_window_test.h" | 14 #include "chrome/test/base/browser_with_test_window_test.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/events/base_event_utils.h" | 17 #include "ui/events/base_event_utils.h" |
| 18 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
| 19 #include "ui/views/controls/button/button.h" | 19 #include "ui/views/controls/button/button.h" |
| 20 #include "ui/views/controls/scroll_view.h" | 20 #include "ui/views/controls/scroll_view.h" |
| 21 #include "ui/views/resources/grit/views_resources.h" | 21 #include "ui/views/resources/grit/views_resources.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const ui::MouseEvent event(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), | 137 const ui::MouseEvent event(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), |
| 138 ui::EventTimeForNow(), 0, 0); | 138 ui::EventTimeForNow(), 0, 0); |
| 139 EXPECT_EQ(bubble_->GetInkDropStateForTesting(0), views::InkDropState::HIDDEN); | 139 EXPECT_EQ(bubble_->GetInkDropStateForTesting(0), views::InkDropState::HIDDEN); |
| 140 bubble_->PressButtonForTesting(0, event); | 140 bubble_->PressButtonForTesting(0, event); |
| 141 EXPECT_EQ(bubble_->GetInkDropStateForTesting(0), | 141 EXPECT_EQ(bubble_->GetInkDropStateForTesting(0), |
| 142 views::InkDropState::ACTIVATED); | 142 views::InkDropState::ACTIVATED); |
| 143 bubble_->PressButtonForTesting(0, event); | 143 bubble_->PressButtonForTesting(0, event); |
| 144 EXPECT_EQ(bubble_->GetInkDropStateForTesting(0), | 144 EXPECT_EQ(bubble_->GetInkDropStateForTesting(0), |
| 145 views::InkDropState::ACTIVATED); | 145 views::InkDropState::ACTIVATED); |
| 146 } | 146 } |
| OLD | NEW |