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

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

Issue 2718573002: Omnibox UI - Delete Unused Class (Closed)
Patch Set: Created 3 years, 10 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/location_bar_decoration_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_decoration_view.h b/chrome/browser/ui/views/location_bar/location_bar_decoration_view.h
deleted file mode 100644
index 3f73081db03fb647e6506fc347f22ecba1c38002..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/location_bar/location_bar_decoration_view.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 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 CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_DECORATION_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_DECORATION_VIEW_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "ui/views/controls/image_view.h"
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// LocationBarDecorationView
-//
-// An abstract class to provide common functionality to all icons that show up
-// in the omnibox (like the bookmarks star or SSL lock).
-//
-////////////////////////////////////////////////////////////////////////////////
-class LocationBarDecorationView : public views::ImageView {
- public:
- LocationBarDecorationView();
- ~LocationBarDecorationView() override;
-
- // views::ImageView:
- bool OnMousePressed(const ui::MouseEvent& event) override;
- void OnMouseReleased(const ui::MouseEvent& event) override;
- bool OnKeyPressed(const ui::KeyEvent& event) override;
- void OnGestureEvent(ui::GestureEvent* event) override;
-
- protected:
- // Whether this icon should currently be able to process a mouse click. Called
- // both on mouse up and mouse down; must return true both times to for
- // |OnClick()| to be called.
- virtual bool CanHandleClick() const;
-
- // Called when a user mouses up, taps, or presses a key on this icon.
- virtual void OnClick() = 0;
-
- private:
- // Set when the user's mouse goes down to determine whether |CanHandleClick()|
- // was true at that point.
- bool could_handle_click_;
-
- DISALLOW_COPY_AND_ASSIGN(LocationBarDecorationView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_DECORATION_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698