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

Unified Diff: ui/views/corewm/tooltip_controller_test_helper.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/corewm/tooltip_controller_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_controller_test_helper.h
diff --git a/ui/views/corewm/tooltip_controller_test_helper.h b/ui/views/corewm/tooltip_controller_test_helper.h
deleted file mode 100644
index 310a00c89f75696c024821e6d7054609baaf22cc..0000000000000000000000000000000000000000
--- a/ui/views/corewm/tooltip_controller_test_helper.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
-#define UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
-
-#include "base/logging.h"
-#include "base/strings/string16.h"
-#include "ui/views/view.h"
-#include "ui/views/views_export.h"
-
-namespace aura {
-class Window;
-}
-
-namespace views {
-namespace corewm {
-
-class TooltipController;
-
-namespace test {
-
-// TooltipControllerTestHelper provides access to TooltipControllers private
-// state.
-class TooltipControllerTestHelper {
- public:
- explicit TooltipControllerTestHelper(TooltipController* controller);
- ~TooltipControllerTestHelper();
-
- TooltipController* controller() { return controller_; }
-
- // These are mostly cover methods for TooltipController private methods.
- base::string16 GetTooltipText();
- aura::Window* GetTooltipWindow();
- void FireTooltipTimer();
- bool IsTooltipTimerRunning();
- void FireTooltipShownTimer();
- bool IsTooltipShownTimerRunning();
- bool IsTooltipVisible();
-
- private:
- TooltipController* controller_;
-
- DISALLOW_COPY_AND_ASSIGN(TooltipControllerTestHelper);
-};
-
-// Trivial View subclass that lets you set the tooltip text.
-class TooltipTestView : public views::View {
- public:
- TooltipTestView();
- virtual ~TooltipTestView();
-
- void set_tooltip_text(base::string16 tooltip_text) {
- tooltip_text_ = tooltip_text;
- }
-
- // Overridden from views::View
- virtual bool GetTooltipText(const gfx::Point& p,
- base::string16* tooltip) const override;
-
- private:
- base::string16 tooltip_text_;
-
- DISALLOW_COPY_AND_ASSIGN(TooltipTestView);
-};
-
-
-} // namespace test
-} // namespace corewm
-} // namespace views
-
-#endif // UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_TEST_HELPER_H_
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/corewm/tooltip_controller_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698