OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 5 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windowsx.h> | 8 #include <windowsx.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 // Set the background offset used to match the background image to the frame | 250 // Set the background offset used to match the background image to the frame |
251 // image. | 251 // image. |
252 void set_background_offset(const gfx::Point& offset) { | 252 void set_background_offset(const gfx::Point& offset) { |
253 background_offset_ = offset; | 253 background_offset_ = offset; |
254 } | 254 } |
255 | 255 |
256 protected: | 256 protected: |
257 // views::View: | 257 // views::View: |
258 #if defined(OS_WIN) | 258 #if defined(OS_WIN) |
259 virtual void OnMouseReleased(const ui::MouseEvent& event) override; | 259 void OnMouseReleased(const ui::MouseEvent& event) override; |
260 #endif | 260 #endif |
261 void OnPaint(gfx::Canvas* canvas) override; | 261 void OnPaint(gfx::Canvas* canvas) override; |
262 | 262 |
263 // ui::EventHandler: | 263 // ui::EventHandler: |
264 void OnGestureEvent(ui::GestureEvent* event) override; | 264 void OnGestureEvent(ui::GestureEvent* event) override; |
265 | 265 |
266 private: | 266 private: |
267 // views::MaskedTargeterDelegate: | 267 // views::MaskedTargeterDelegate: |
268 bool GetHitTestMask(gfx::Path* mask) const override; | 268 bool GetHitTestMask(gfx::Path* mask) const override; |
269 | 269 |
(...skipping 2495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2765 ConvertPointToViewAndGetEventHandler(this, newtab_button_, point); | 2765 ConvertPointToViewAndGetEventHandler(this, newtab_button_, point); |
2766 if (view) | 2766 if (view) |
2767 return view; | 2767 return view; |
2768 } | 2768 } |
2769 Tab* tab = FindTabForEvent(point); | 2769 Tab* tab = FindTabForEvent(point); |
2770 if (tab) | 2770 if (tab) |
2771 return ConvertPointToViewAndGetEventHandler(this, tab, point); | 2771 return ConvertPointToViewAndGetEventHandler(this, tab, point); |
2772 } | 2772 } |
2773 return this; | 2773 return this; |
2774 } | 2774 } |
OLD | NEW |