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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.h

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Tells GTK that the toolbar area is invalidated and needs redrawing. We 241 // Tells GTK that the toolbar area is invalidated and needs redrawing. We
242 // have this method as a hack because GTK doesn't queue the toolbar area for 242 // have this method as a hack because GTK doesn't queue the toolbar area for
243 // redraw when it should. 243 // redraw when it should.
244 void QueueToolbarRedraw(); 244 void QueueToolbarRedraw();
245 245
246 // Get the position where the infobar arrow should be anchored in 246 // Get the position where the infobar arrow should be anchored in
247 // |relative_to| coordinates. This is the middle of the omnibox location icon. 247 // |relative_to| coordinates. This is the middle of the omnibox location icon.
248 int GetXPositionOfLocationIcon(GtkWidget* relative_to); 248 int GetXPositionOfLocationIcon(GtkWidget* relative_to);
249 249
250 protected: 250 protected:
251 virtual void DestroyBrowser(); 251 virtual void DestroyBrowser() OVERRIDE;
252 252
253 // Checks to see if the mouse pointer at |x|, |y| is over the border of the 253 // Checks to see if the mouse pointer at |x|, |y| is over the border of the
254 // custom frame (a spot that should trigger a window resize). Returns true if 254 // custom frame (a spot that should trigger a window resize). Returns true if
255 // it should and sets |edge|. 255 // it should and sets |edge|.
256 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); 256 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge);
257 257
258 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event, 258 virtual bool HandleTitleBarLeftMousePress(GdkEventButton* event,
259 guint32 last_click_time, 259 guint32 last_click_time,
260 gfx::Point last_click_position); 260 gfx::Point last_click_position);
261 261
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // be called. This should only be enabled in tests where the debounce timeout 530 // be called. This should only be enabled in tests where the debounce timeout
531 // introduces timing issues (e.g. in OmniBoxApiTest it dismisses the 531 // introduces timing issues (e.g. in OmniBoxApiTest it dismisses the
532 // autocomplete popup before the results can be read) and the final window 532 // autocomplete popup before the results can be read) and the final window
533 // position is unimportant. 533 // position is unimportant.
534 bool debounce_timer_disabled_; 534 bool debounce_timer_disabled_;
535 535
536 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 536 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
537 }; 537 };
538 538
539 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ 539 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_toolbar_gtk.h ('k') | chrome/browser/ui/gtk/collected_cookies_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698