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

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

Issue 10377114: Remove some more OS_CHROMEOS from browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 return panel_view->GetDispositionForPopupBounds(bounds); 658 return panel_view->GetDispositionForPopupBounds(bounds);
659 #else 659 #else
660 return NEW_POPUP; 660 return NEW_POPUP;
661 #endif 661 #endif
662 } 662 }
663 663
664 FindBar* Panel::CreateFindBar() { 664 FindBar* Panel::CreateFindBar() {
665 return native_panel_->CreatePanelFindBar(); 665 return native_panel_->CreatePanelFindBar();
666 } 666 }
667 667
668 #if defined(OS_CHROMEOS)
669 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) {
670 NOTIMPLEMENTED();
671 }
672 #endif
673
674 void Panel::ResizeDueToAutoResize(WebContents* web_contents, 668 void Panel::ResizeDueToAutoResize(WebContents* web_contents,
675 const gfx::Size& pref_size) { 669 const gfx::Size& pref_size) {
676 DCHECK(auto_resizable_); 670 DCHECK(auto_resizable_);
677 return manager()->OnWindowAutoResized( 671 return manager()->OnWindowAutoResized(
678 this, 672 this,
679 native_panel_->WindowSizeFromContentSize(pref_size)); 673 native_panel_->WindowSizeFromContentSize(pref_size));
680 } 674 }
681 675
682 void Panel::ShowAvatarBubble(WebContents* web_contents, const gfx::Rect& rect) { 676 void Panel::ShowAvatarBubble(WebContents* web_contents, const gfx::Rect& rect) {
683 // Panels will never show a new tab page so this should never be called. 677 // Panels will never show a new tab page so this should never be called.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 max_size_policy_ = CUSTOM_MAX_SIZE; 786 max_size_policy_ = CUSTOM_MAX_SIZE;
793 } 787 }
794 788
795 void Panel::OnPanelEndUserResizing() { 789 void Panel::OnPanelEndUserResizing() {
796 SetPreviewMode(false); 790 SetPreviewMode(false);
797 } 791 }
798 792
799 void Panel::DestroyBrowser() { 793 void Panel::DestroyBrowser() {
800 native_panel_->DestroyPanelBrowser(); 794 native_panel_->DestroyPanelBrowser();
801 } 795 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698