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

Side by Side Diff: components/ui/zoom/zoom_test_utils.h

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Convert to pathway common to Mac and non-Mac. Created 5 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_UI_ZOOM_ZOOM_TEST_UTILS_H_
6 #define COMPONENTS_UI_ZOOM_ZOOM_TEST_UTILS_H_
7
8 #include "base/macros.h"
9 #include "components/ui/zoom/zoom_controller.h"
10 #include "components/ui/zoom/zoom_observer.h"
11
12 namespace content {
13 class MessageLoopRunner;
14 }
15
16 namespace ui_zoom {
17
18 bool operator==(const ZoomController::ZoomChangedEventData& lhs,
19 const ZoomController::ZoomChangedEventData& rhs);
20
21 class ZoomChangedWatcher : public ui_zoom::ZoomObserver {
22 public:
23 ZoomChangedWatcher(
24 ZoomController* zoom_controller,
25 const ZoomController::ZoomChangedEventData& expected_event_data);
26 ~ZoomChangedWatcher() override;
27
28 void Wait();
29
30 void OnZoomChanged(
31 const ZoomController::ZoomChangedEventData& event_data) override;
32
33 private:
34 ZoomController* zoom_controller_;
35 ZoomController::ZoomChangedEventData expected_event_data_;
36 scoped_refptr<content::MessageLoopRunner> message_loop_runner_;
37
38 DISALLOW_COPY_AND_ASSIGN(ZoomChangedWatcher);
39 };
40
41 } // namespace ui_zoom
42 #endif // COMPONENTS_UI_ZOOM_ZOOM_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698