| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #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 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 465 |
| 466 // Shows docked devtools. | 466 // Shows docked devtools. |
| 467 void ShowDevToolsContainer(); | 467 void ShowDevToolsContainer(); |
| 468 | 468 |
| 469 // Hides docked devtools. | 469 // Hides docked devtools. |
| 470 void HideDevToolsContainer(); | 470 void HideDevToolsContainer(); |
| 471 | 471 |
| 472 // Called when the preference changes. | 472 // Called when the preference changes. |
| 473 void OnUseCustomChromeFrameChanged(); | 473 void OnUseCustomChromeFrameChanged(); |
| 474 | 474 |
| 475 // Determine whether we use should default to native decorations or the custom | |
| 476 // frame based on the currently-running window manager. | |
| 477 static bool GetCustomFramePrefDefault(); | |
| 478 | |
| 479 // Handler for |devtools_floating_container_|'s "set-floating-position" | 475 // Handler for |devtools_floating_container_|'s "set-floating-position" |
| 480 // signal. | 476 // signal. |
| 481 static void OnDevToolsContainerSetFloatingPosition( | 477 static void OnDevToolsContainerSetFloatingPosition( |
| 482 GtkFloatingContainer* container, GtkAllocation* allocation, | 478 GtkFloatingContainer* container, GtkAllocation* allocation, |
| 483 BrowserWindowGtk* browser_window); | 479 BrowserWindowGtk* browser_window); |
| 484 | 480 |
| 485 // The position and size of the current window. | 481 // The position and size of the current window. |
| 486 gfx::Rect bounds_; | 482 gfx::Rect bounds_; |
| 487 | 483 |
| 488 // The configure bounds of the current window, used to figure out whether to | 484 // The configure bounds of the current window, used to figure out whether to |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 bool is_fullscreen_; | 581 bool is_fullscreen_; |
| 586 | 582 |
| 587 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 583 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
| 588 | 584 |
| 589 content::NotificationRegistrar registrar_; | 585 content::NotificationRegistrar registrar_; |
| 590 | 586 |
| 591 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 587 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
| 592 }; | 588 }; |
| 593 | 589 |
| 594 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ | 590 #endif // CHROME_BROWSER_UI_GTK_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |