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

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: NOTIMPLEMENTED() 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 NOTIMPLEMENTED();
718 return gfx::Rect();
719 }
720
721 gfx::Rect BrowserWindowGtk::WindowBoundsForContentBounds(
722 const gfx::Rect& content_bounds) const {
723 NOTIMPLEMENTED();
724 return gfx::Rect();
725 }
726
715 gfx::NativeWindow BrowserWindowGtk::GetNativeWindow() { 727 gfx::NativeWindow BrowserWindowGtk::GetNativeWindow() {
716 return window_; 728 return window_;
717 } 729 }
718 730
719 BrowserWindowTesting* BrowserWindowGtk::GetBrowserWindowTesting() { 731 BrowserWindowTesting* BrowserWindowGtk::GetBrowserWindowTesting() {
720 NOTIMPLEMENTED(); 732 NOTIMPLEMENTED();
721 return NULL; 733 return NULL;
722 } 734 }
723 735
724 StatusBubble* BrowserWindowGtk::GetStatusBubble() { 736 StatusBubble* BrowserWindowGtk::GetStatusBubble() {
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 wm_type == ui::WM_OPENBOX || 2455 wm_type == ui::WM_OPENBOX ||
2444 wm_type == ui::WM_XFWM4); 2456 wm_type == ui::WM_XFWM4);
2445 } 2457 }
2446 2458
2447 // static 2459 // static
2448 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2460 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2449 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2461 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2450 browser_window_gtk->Init(); 2462 browser_window_gtk->Init();
2451 return browser_window_gtk; 2463 return browser_window_gtk;
2452 } 2464 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698