| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/gtk/browser_window_gtk.h" | 5 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 // destruction, set window_ to NULL before any handlers will run. | 703 // destruction, set window_ to NULL before any handlers will run. |
| 704 window_ = NULL; | 704 window_ = NULL; |
| 705 titlebar_->set_window(NULL); | 705 titlebar_->set_window(NULL); |
| 706 gtk_widget_destroy(window); | 706 gtk_widget_destroy(window); |
| 707 } | 707 } |
| 708 | 708 |
| 709 void BrowserWindowGtk::Activate() { | 709 void BrowserWindowGtk::Activate() { |
| 710 gtk_window_present(window_); | 710 gtk_window_present(window_); |
| 711 } | 711 } |
| 712 | 712 |
| 713 void BrowserWindowGtk::Deactivate() { |
| 714 // TODO(jcivelli): http://crbug.com/51364 Implement me. |
| 715 NOTIMPLEMENTED(); |
| 716 } |
| 717 |
| 713 bool BrowserWindowGtk::IsActive() const { | 718 bool BrowserWindowGtk::IsActive() const { |
| 714 return is_active_; | 719 return is_active_; |
| 715 } | 720 } |
| 716 | 721 |
| 717 void BrowserWindowGtk::FlashFrame() { | 722 void BrowserWindowGtk::FlashFrame() { |
| 718 // May not be respected by all window managers. | 723 // May not be respected by all window managers. |
| 719 gtk_window_set_urgency_hint(window_, TRUE); | 724 gtk_window_set_urgency_hint(window_, TRUE); |
| 720 } | 725 } |
| 721 | 726 |
| 722 gfx::NativeWindow BrowserWindowGtk::GetNativeHandle() { | 727 gfx::NativeWindow BrowserWindowGtk::GetNativeHandle() { |
| (...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2167 // special-case the ones where the custom frame should be used. These names | 2172 // special-case the ones where the custom frame should be used. These names |
| 2168 // are taken from the WMs' source code. | 2173 // are taken from the WMs' source code. |
| 2169 return (wm_name == "Blackbox" || | 2174 return (wm_name == "Blackbox" || |
| 2170 wm_name == "compiz" || | 2175 wm_name == "compiz" || |
| 2171 wm_name == "e16" || // Enlightenment DR16 | 2176 wm_name == "e16" || // Enlightenment DR16 |
| 2172 wm_name == "Metacity" || | 2177 wm_name == "Metacity" || |
| 2173 wm_name == "Mutter" || | 2178 wm_name == "Mutter" || |
| 2174 wm_name == "Openbox" || | 2179 wm_name == "Openbox" || |
| 2175 wm_name == "Xfwm4"); | 2180 wm_name == "Xfwm4"); |
| 2176 } | 2181 } |
| OLD | NEW |