| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <X11/XF86keysym.h> | 8 #include <X11/XF86keysym.h> |
| 9 | 9 |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 gtk_window_set_title(window_, UTF16ToUTF8(title).c_str()); | 583 gtk_window_set_title(window_, UTF16ToUTF8(title).c_str()); |
| 584 if (ShouldShowWindowIcon()) { | 584 if (ShouldShowWindowIcon()) { |
| 585 // TODO(tc): If we're showing a title bar, we should update the app icon. | 585 // TODO(tc): If we're showing a title bar, we should update the app icon. |
| 586 } | 586 } |
| 587 } | 587 } |
| 588 | 588 |
| 589 void BrowserWindowGtk::UpdateDevTools() { | 589 void BrowserWindowGtk::UpdateDevTools() { |
| 590 NOTIMPLEMENTED(); | 590 NOTIMPLEMENTED(); |
| 591 } | 591 } |
| 592 | 592 |
| 593 void BrowserWindowGtk::FocusDevTools() { |
| 594 NOTIMPLEMENTED(); |
| 595 } |
| 596 |
| 593 void BrowserWindowGtk::UpdateLoadingAnimations(bool should_animate) { | 597 void BrowserWindowGtk::UpdateLoadingAnimations(bool should_animate) { |
| 594 if (should_animate) { | 598 if (should_animate) { |
| 595 if (!loading_animation_timer_.IsRunning()) { | 599 if (!loading_animation_timer_.IsRunning()) { |
| 596 // Loads are happening, and the timer isn't running, so start it. | 600 // Loads are happening, and the timer isn't running, so start it. |
| 597 loading_animation_timer_.Start( | 601 loading_animation_timer_.Start( |
| 598 base::TimeDelta::FromMilliseconds(kLoadingAnimationFrameTimeMs), this, | 602 base::TimeDelta::FromMilliseconds(kLoadingAnimationFrameTimeMs), this, |
| 599 &BrowserWindowGtk::LoadingAnimationCallback); | 603 &BrowserWindowGtk::LoadingAnimationCallback); |
| 600 } | 604 } |
| 601 } else { | 605 } else { |
| 602 if (loading_animation_timer_.IsRunning()) { | 606 if (loading_animation_timer_.IsRunning()) { |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 *edge = GDK_WINDOW_EDGE_NORTH_EAST; | 1444 *edge = GDK_WINDOW_EDGE_NORTH_EAST; |
| 1441 } else if (y < bounds_.height() - kResizeAreaCornerSize) { | 1445 } else if (y < bounds_.height() - kResizeAreaCornerSize) { |
| 1442 *edge = GDK_WINDOW_EDGE_EAST; | 1446 *edge = GDK_WINDOW_EDGE_EAST; |
| 1443 } else { | 1447 } else { |
| 1444 *edge = GDK_WINDOW_EDGE_SOUTH_EAST; | 1448 *edge = GDK_WINDOW_EDGE_SOUTH_EAST; |
| 1445 } | 1449 } |
| 1446 return true; | 1450 return true; |
| 1447 } | 1451 } |
| 1448 NOTREACHED(); | 1452 NOTREACHED(); |
| 1449 } | 1453 } |
| OLD | NEW |