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

Unified Diff: ui/chromeos/ime/mode_indicator_view.h

Issue 727143002: Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/chromeos/ime/mode_indicator_view.h
diff --git a/ui/chromeos/ime/mode_indicator_view.h b/ui/chromeos/ime/mode_indicator_view.h
deleted file mode 100644
index 2cd5260c4370ba586019dad51fe218b7f8d02c4c..0000000000000000000000000000000000000000
--- a/ui/chromeos/ime/mode_indicator_view.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 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_CHROMEOS_IME_MODE_INDICATOR_VIEW_H_
-#define UI_CHROMEOS_IME_MODE_INDICATOR_VIEW_H_
-
-#include "base/strings/string16.h"
-#include "base/timer/timer.h"
-#include "ui/chromeos/ui_chromeos_export.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect.h"
-#include "ui/views/bubble/bubble_delegate.h"
-
-namespace views {
-class Label;
-class Widget;
-} // namespace views
-
-namespace ui {
-namespace ime {
-
-class UI_CHROMEOS_EXPORT ModeIndicatorView : public views::BubbleDelegateView {
- public:
- ModeIndicatorView(gfx::NativeView parent,
- const gfx::Rect& cursor_bounds,
- const base::string16& label);
- ~ModeIndicatorView() override;
-
- // Show the mode indicator then hide with fading animation.
- void ShowAndFadeOut();
-
- // views::BubbleDelegateView override:
- gfx::Size GetPreferredSize() const override;
-
- protected:
- // views::BubbleDelegateView override:
- void Init() override;
-
- // views::WidgetDelegateView overrides:
- views::NonClientFrameView* CreateNonClientFrameView(
- views::Widget* widget) override;
-
- private:
- gfx::Rect cursor_bounds_;
- views::Label* label_view_;
- base::OneShotTimer<views::Widget> timer_;
-
- DISALLOW_COPY_AND_ASSIGN(ModeIndicatorView);
-};
-
-} // namespace ime
-} // namespace ui
-
-#endif // UI_CHROMEOS_IME_MODE_INDICATOR_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698