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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.cc

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 months 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/panels/panel_browser_window_gtk.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_list.h" 9 #include "chrome/browser/ui/browser_list.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 bool PanelBrowserWindowGtk::IsPanelActive() const { 453 bool PanelBrowserWindowGtk::IsPanelActive() const {
454 return IsActive(); 454 return IsActive();
455 } 455 }
456 456
457 void PanelBrowserWindowGtk::PreventActivationByOS(bool prevent_activation) { 457 void PanelBrowserWindowGtk::PreventActivationByOS(bool prevent_activation) {
458 gtk_window_set_accept_focus(window(), !prevent_activation); 458 gtk_window_set_accept_focus(window(), !prevent_activation);
459 return; 459 return;
460 } 460 }
461 461
462 gfx::NativeWindow PanelBrowserWindowGtk::GetNativePanelHandle() { 462 gfx::NativeWindow PanelBrowserWindowGtk::GetNativePanelHandle() {
463 return GetNativeHandle(); 463 return GetNativeWindow();
464 } 464 }
465 465
466 void PanelBrowserWindowGtk::UpdatePanelTitleBar() { 466 void PanelBrowserWindowGtk::UpdatePanelTitleBar() {
467 UpdateTitleBar(); 467 UpdateTitleBar();
468 } 468 }
469 469
470 void PanelBrowserWindowGtk::UpdatePanelLoadingAnimations(bool should_animate) { 470 void PanelBrowserWindowGtk::UpdatePanelLoadingAnimations(bool should_animate) {
471 UpdateLoadingAnimations(should_animate); 471 UpdateLoadingAnimations(should_animate);
472 } 472 }
473 473
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 break; 760 break;
761 case panel::RESTORE_BUTTON: 761 case panel::RESTORE_BUTTON:
762 button = titlebar->restore_button(); 762 button = titlebar->restore_button();
763 break; 763 break;
764 default: 764 default:
765 NOTREACHED(); 765 NOTREACHED();
766 return false; 766 return false;
767 } 767 }
768 return gtk_widget_get_visible(button->widget()); 768 return gtk_widget_get_visible(button->widget());
769 } 769 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698