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

Side by Side Diff: chrome/browser/ui/views/extensions/native_app_window_views.cc

Issue 12803011: Add BaseWindow::GetContentBounds() and use in WindowController::CreateWindowValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix osx build Created 7 years, 9 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/views/extensions/native_app_window_views.h" 5 #include "chrome/browser/ui/views/extensions/native_app_window_views.h"
6 6
7 #include "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
9 #include "chrome/browser/favicon/favicon_tab_helper.h" 9 #include "chrome/browser/favicon/favicon_tab_helper.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 } 218 }
219 219
220 gfx::Rect NativeAppWindowViews::GetRestoredBounds() const { 220 gfx::Rect NativeAppWindowViews::GetRestoredBounds() const {
221 return window_->GetRestoredBounds(); 221 return window_->GetRestoredBounds();
222 } 222 }
223 223
224 gfx::Rect NativeAppWindowViews::GetBounds() const { 224 gfx::Rect NativeAppWindowViews::GetBounds() const {
225 return window_->GetWindowBoundsInScreen(); 225 return window_->GetWindowBoundsInScreen();
226 } 226 }
227 227
228 gfx::Rect NativeAppWindowViews::GetContentBounds() const {
229 return window_->GetClientAreaBoundsInScreen();
230 }
231
228 void NativeAppWindowViews::Show() { 232 void NativeAppWindowViews::Show() {
229 if (window_->IsVisible()) { 233 if (window_->IsVisible()) {
230 window_->Activate(); 234 window_->Activate();
231 return; 235 return;
232 } 236 }
233 237
234 window_->Show(); 238 window_->Show();
235 } 239 }
236 240
237 void NativeAppWindowViews::ShowInactive() { 241 void NativeAppWindowViews::ShowInactive() {
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 } 593 }
590 594
591 //------------------------------------------------------------------------------ 595 //------------------------------------------------------------------------------
592 // NativeAppWindow::Create 596 // NativeAppWindow::Create
593 597
594 // static 598 // static
595 NativeAppWindow* NativeAppWindow::Create( 599 NativeAppWindow* NativeAppWindow::Create(
596 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { 600 ShellWindow* shell_window, const ShellWindow::CreateParams& params) {
597 return new NativeAppWindowViews(shell_window, params); 601 return new NativeAppWindowViews(shell_window, params);
598 } 602 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/native_app_window_views.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