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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 1100223002: Update {virtual,override} to follow C++11 style in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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 unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/status_icons/status_tray_win.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_button_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698