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

Unified Diff: chrome/browser/ui/views/location_bar/suggested_text_view.h

Issue 11262015: Remove unused / unnecessary stuff from Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SuggestedTextView entirely Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/suggested_text_view.h
diff --git a/chrome/browser/ui/views/location_bar/suggested_text_view.h b/chrome/browser/ui/views/location_bar/suggested_text_view.h
deleted file mode 100644
index 6db9571fe9942fbadf1c2a9186636aa52eb6c157..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/location_bar/suggested_text_view.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2011 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 CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SUGGESTED_TEXT_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SUGGESTED_TEXT_VIEW_H_
-
-#include "base/compiler_specific.h"
-#include "ui/base/animation/animation_delegate.h"
-#include "ui/views/controls/label.h"
-
-class OmniboxEditModel;
-
-// SuggestedTextView is used to show the suggest text in the LocationBar.
-// Invoke |StartAnimation| to start an animation that when done invokes
-// |CommitSuggestedText| on the AutocompleteEdit to commit the suggested text.
-class SuggestedTextView : public views::Label,
- public ui::AnimationDelegate {
- public:
- SuggestedTextView(OmniboxEditModel* edit_model,
- bool instant_extended_api_enabled);
- virtual ~SuggestedTextView();
-
- // Starts the animation. If the animation is currently running it is stopped
- // and restarted. The animation transitions the suggested text to look like
- // selected text. When the animation completes |OnCommitSuggestedText| is
- // invoked on the LocationBar.
- void StartAnimation();
-
- // Stops the animation.
- void StopAnimation();
-
- // View overrides:
- virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
-
- // AnimationDelegate overrides:
- virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
- virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
- virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE;
-
- private:
- // Creates the animation to use.
- ui::Animation* CreateAnimation();
-
- // Resets the background color.
- void UpdateBackgroundColor();
-
- OmniboxEditModel* edit_model_;
-
- // True if Instant Extended API is enabled.
- const bool instant_extended_api_enabled_;
-
- scoped_ptr<ui::Animation> animation_;
-
- SkColor bg_color_;
- DISALLOW_COPY_AND_ASSIGN(SuggestedTextView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SUGGESTED_TEXT_VIEW_H_
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | chrome/browser/ui/views/location_bar/suggested_text_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698