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

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

Issue 8586045: Add extension API to change window show state using chrome.windows.update(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 bool Panel::IsMaximized() const { 250 bool Panel::IsMaximized() const {
251 // Size of panels is managed by PanelManager, they are never 'zoomed'. 251 // Size of panels is managed by PanelManager, they are never 'zoomed'.
252 return false; 252 return false;
253 } 253 }
254 254
255 bool Panel::IsMinimized() const { 255 bool Panel::IsMinimized() const {
256 return expansion_state_ != EXPANDED; 256 return expansion_state_ != EXPANDED;
257 } 257 }
258 258
259 void Panel::Maximize() {
260 Restore();
261 }
262
263 void Panel::Minimize() {
264 SetExpansionState(MINIMIZED);
265 }
266
267 void Panel::Restore() {
268 SetExpansionState(EXPANDED);
269 }
270
259 void Panel::EnterFullscreen( 271 void Panel::EnterFullscreen(
260 const GURL& url, FullscreenExitBubbleType type) { 272 const GURL& url, FullscreenExitBubbleType type) {
261 NOTIMPLEMENTED(); 273 NOTIMPLEMENTED();
262 } 274 }
263 275
264 void Panel::ExitFullscreen() { 276 void Panel::ExitFullscreen() {
265 NOTIMPLEMENTED(); 277 NOTIMPLEMENTED();
266 } 278 }
267 279
268 void Panel::UpdateFullscreenExitBubbleContent( 280 void Panel::UpdateFullscreenExitBubbleContent(
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 RequestRenderViewHostToDisableScrollbars(render_view_host); 606 RequestRenderViewHostToDisableScrollbars(render_view_host);
595 } 607 }
596 608
597 Browser* Panel::browser() const { 609 Browser* Panel::browser() const {
598 return native_panel_->GetPanelBrowser(); 610 return native_panel_->GetPanelBrowser();
599 } 611 }
600 612
601 void Panel::DestroyBrowser() { 613 void Panel::DestroyBrowser() {
602 native_panel_->DestroyPanelBrowser(); 614 native_panel_->DestroyPanelBrowser();
603 } 615 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698