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

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

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
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_decoration_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc b/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc
deleted file mode 100644
index 0a93b5ac06c786a0a2c649677b3301444a7f0599..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/location_bar/location_bar_decoration_view.cc
+++ /dev/null
@@ -1,52 +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.
-
-#include "chrome/browser/ui/views/location_bar/location_bar_decoration_view.h"
-
-#include "ui/events/event.h"
-
-LocationBarDecorationView::LocationBarDecorationView()
- : could_handle_click_(true) {
- SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
-}
-
-LocationBarDecorationView::~LocationBarDecorationView() {}
-
-bool LocationBarDecorationView::OnMousePressed(const ui::MouseEvent& event) {
- if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location())) {
- // Do nothing until mouse is released.
- could_handle_click_ = CanHandleClick();
- return true;
- }
-
- return false;
-}
-
-void LocationBarDecorationView::OnMouseReleased(const ui::MouseEvent& event) {
- if (event.IsOnlyLeftMouseButton() && HitTestPoint(event.location()) &&
- could_handle_click_ && CanHandleClick()) {
- OnClick();
- }
-}
-
-bool LocationBarDecorationView::OnKeyPressed(const ui::KeyEvent& event) {
- if (event.key_code() == ui::VKEY_SPACE ||
- event.key_code() == ui::VKEY_RETURN) {
- OnClick();
- return true;
- }
-
- return false;
-}
-
-void LocationBarDecorationView::OnGestureEvent(ui::GestureEvent* event) {
- if (event->type() == ui::ET_GESTURE_TAP) {
- OnClick();
- event->SetHandled();
- }
-}
-
-bool LocationBarDecorationView::CanHandleClick() const {
- return true;
-}
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_decoration_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698