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

Unified Diff: chrome/browser/ui/touch/frame/touch_browser_frame_view.cc

Issue 8678015: Touch constants and dead code removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied Sadrul's comments Created 9 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: chrome/browser/ui/touch/frame/touch_browser_frame_view.cc
diff --git a/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc b/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc
deleted file mode 100644
index aea11b34126d7a19294e563b71e3abd36e853eb1..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc
+++ /dev/null
@@ -1,48 +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.
-
-#include "chrome/browser/ui/touch/frame/touch_browser_frame_view.h"
-
-#include "ui/gfx/compositor/layer.h"
-#include "views/controls/button/image_button.h"
-
-// static
-const char TouchBrowserFrameView::kViewClassName[] =
- "browser/ui/touch/frame/TouchBrowserFrameView";
-
-///////////////////////////////////////////////////////////////////////////////
-// TouchBrowserFrameView, public:
-
-TouchBrowserFrameView::TouchBrowserFrameView(BrowserFrame* frame,
- BrowserView* browser_view)
- : OpaqueBrowserFrameView(frame, browser_view),
- initialized_screen_rotation_(false) {
-}
-
-TouchBrowserFrameView::~TouchBrowserFrameView() {
-}
-
-std::string TouchBrowserFrameView::GetClassName() const {
- return kViewClassName;
-}
-
-bool TouchBrowserFrameView::HitTest(const gfx::Point& point) const {
- if (OpaqueBrowserFrameView::HitTest(point))
- return true;
-
- if (close_button()->IsVisible() &&
- close_button()->GetMirroredBounds().Contains(point))
- return true;
- if (restore_button()->IsVisible() &&
- restore_button()->GetMirroredBounds().Contains(point))
- return true;
- if (maximize_button()->IsVisible() &&
- maximize_button()->GetMirroredBounds().Contains(point))
- return true;
- if (minimize_button()->IsVisible() &&
- minimize_button()->GetMirroredBounds().Contains(point))
- return true;
-
- return false;
-}
« no previous file with comments | « chrome/browser/ui/touch/frame/touch_browser_frame_view.h ('k') | chrome/browser/ui/touch/tabs/tab_strip_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698