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

Side by Side Diff: components/ui/zoom/test/zoom_test_utils.cc

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git add deps file Created 5 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/ui/zoom/zoom_test_utils.h" 5 #include "components/ui/zoom/test/zoom_test_utils.h"
6 6
7 #include "content/public/test/test_utils.h" 7 #include "content/public/test/test_utils.h"
8 8
9 namespace ui_zoom { 9 namespace ui_zoom {
10 10
11 bool operator==(const ZoomController::ZoomChangedEventData& lhs, 11 bool operator==(const ZoomController::ZoomChangedEventData& lhs,
12 const ZoomController::ZoomChangedEventData& rhs) { 12 const ZoomController::ZoomChangedEventData& rhs) {
13 return lhs.web_contents == rhs.web_contents && 13 return lhs.web_contents == rhs.web_contents &&
14 lhs.old_zoom_level == rhs.old_zoom_level && 14 lhs.old_zoom_level == rhs.old_zoom_level &&
15 lhs.new_zoom_level == rhs.new_zoom_level && 15 lhs.new_zoom_level == rhs.new_zoom_level &&
(...skipping 18 matching lines...) Expand all
34 message_loop_runner_->Run(); 34 message_loop_runner_->Run();
35 } 35 }
36 36
37 void ZoomChangedWatcher::OnZoomChanged( 37 void ZoomChangedWatcher::OnZoomChanged(
38 const ZoomController::ZoomChangedEventData& event_data) { 38 const ZoomController::ZoomChangedEventData& event_data) {
39 if (event_data == expected_event_data_) 39 if (event_data == expected_event_data_)
40 message_loop_runner_->Quit(); 40 message_loop_runner_->Quit();
41 } 41 }
42 42
43 } // namespace ui_zoom 43 } // namespace ui_zoom
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698