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

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

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 8 years, 1 month 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) 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/gtk/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 705
706 void BrowserWindowGtk::FlashFrame(bool flash) { 706 void BrowserWindowGtk::FlashFrame(bool flash) {
707 // May not be respected by all window managers. 707 // May not be respected by all window managers.
708 gtk_window_set_urgency_hint(window_, flash); 708 gtk_window_set_urgency_hint(window_, flash);
709 } 709 }
710 710
711 bool BrowserWindowGtk::IsAlwaysOnTop() const { 711 bool BrowserWindowGtk::IsAlwaysOnTop() const {
712 return false; 712 return false;
713 } 713 }
714 714
715 gfx::Rect BrowserWindowGtk::ContentBoundsForWindowBounds(
716 const gfx::Rect& window_bounds) const {
717 return window_bounds;
Evan Stade 2012/11/14 21:20:59 please at least add a comment of some sort to make
jeremya 2012/11/14 23:35:59 Done, made it NOTIMPLEMENTED().
718 }
719
720 gfx::Rect BrowserWindowGtk::WindowBoundsForContentBounds(
721 const gfx::Rect& content_bounds) const {
722 return content_bounds;
723 }
724
715 gfx::NativeWindow BrowserWindowGtk::GetNativeWindow() { 725 gfx::NativeWindow BrowserWindowGtk::GetNativeWindow() {
716 return window_; 726 return window_;
717 } 727 }
718 728
719 BrowserWindowTesting* BrowserWindowGtk::GetBrowserWindowTesting() { 729 BrowserWindowTesting* BrowserWindowGtk::GetBrowserWindowTesting() {
720 NOTIMPLEMENTED(); 730 NOTIMPLEMENTED();
721 return NULL; 731 return NULL;
722 } 732 }
723 733
724 StatusBubble* BrowserWindowGtk::GetStatusBubble() { 734 StatusBubble* BrowserWindowGtk::GetStatusBubble() {
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 wm_type == ui::WM_OPENBOX || 2453 wm_type == ui::WM_OPENBOX ||
2444 wm_type == ui::WM_XFWM4); 2454 wm_type == ui::WM_XFWM4);
2445 } 2455 }
2446 2456
2447 // static 2457 // static
2448 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2458 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2449 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2459 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2450 browser_window_gtk->Init(); 2460 browser_window_gtk->Init();
2451 return browser_window_gtk; 2461 return browser_window_gtk;
2452 } 2462 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/gtk/extensions/shell_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698