| OLD | NEW |
| 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/panels/panel_gtk.h" | 5 #include "chrome/browser/ui/gtk/panels/panel_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
| 8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
| 9 #include <X11/XF86keysym.h> | 9 #include <X11/XF86keysym.h> |
| 10 | 10 |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 } | 982 } |
| 983 } | 983 } |
| 984 | 984 |
| 985 bool PanelGtk::IsDrawingAttention() const { | 985 bool PanelGtk::IsDrawingAttention() const { |
| 986 return is_drawing_attention_; | 986 return is_drawing_attention_; |
| 987 } | 987 } |
| 988 | 988 |
| 989 void PanelGtk::HandlePanelKeyboardEvent( | 989 void PanelGtk::HandlePanelKeyboardEvent( |
| 990 const NativeWebKeyboardEvent& event) { | 990 const NativeWebKeyboardEvent& event) { |
| 991 GdkEventKey* os_event = &event.os_event->key; | 991 GdkEventKey* os_event = &event.os_event->key; |
| 992 if (os_event && event.type == WebKit::WebInputEvent::RawKeyDown) | 992 if (os_event && event.type == blink::WebInputEvent::RawKeyDown) |
| 993 gtk_window_activate_key(window_, os_event); | 993 gtk_window_activate_key(window_, os_event); |
| 994 } | 994 } |
| 995 | 995 |
| 996 void PanelGtk::FullScreenModeChanged(bool is_full_screen) { | 996 void PanelGtk::FullScreenModeChanged(bool is_full_screen) { |
| 997 // No need to hide panels when entering the full-screen mode because the | 997 // No need to hide panels when entering the full-screen mode because the |
| 998 // full-screen window will automatically be placed above all other windows. | 998 // full-screen window will automatically be placed above all other windows. |
| 999 if (is_full_screen) | 999 if (is_full_screen) |
| 1000 return; | 1000 return; |
| 1001 | 1001 |
| 1002 // Show the panel if not yet when leaving the full-screen mode. This is | 1002 // Show the panel if not yet when leaving the full-screen mode. This is |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1246 } | 1246 } |
| 1247 | 1247 |
| 1248 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { | 1248 panel::CornerStyle GtkNativePanelTesting::GetWindowCornerStyle() const { |
| 1249 return panel_gtk_->corner_style_; | 1249 return panel_gtk_->corner_style_; |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 bool GtkNativePanelTesting::EnsureApplicationRunOnForeground() { | 1252 bool GtkNativePanelTesting::EnsureApplicationRunOnForeground() { |
| 1253 // Not needed on GTK. | 1253 // Not needed on GTK. |
| 1254 return true; | 1254 return true; |
| 1255 } | 1255 } |
| OLD | NEW |