OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |