OLD | NEW |
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/extensions/shell_window.h" | 5 #include "chrome/browser/ui/extensions/shell_window.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/extensions/extension_process_manager.h" | 8 #include "chrome/browser/extensions/extension_process_manager.h" |
9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
10 #include "chrome/browser/extensions/shell_window_geometry_cache.h" | 10 #include "chrome/browser/extensions/shell_window_geometry_cache.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 60 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
61 base::Bind(&ResourceDispatcherHost::BlockRequestsForRoute, | 61 base::Bind(&ResourceDispatcherHost::BlockRequestsForRoute, |
62 base::Unretained(ResourceDispatcherHost::Get()), | 62 base::Unretained(ResourceDispatcherHost::Get()), |
63 rvh->GetProcess()->GetID(), rvh->GetRoutingID())); | 63 rvh->GetProcess()->GetID(), rvh->GetRoutingID())); |
64 } | 64 } |
65 | 65 |
66 } // namespace | 66 } // namespace |
67 | 67 |
68 ShellWindow::CreateParams::CreateParams() | 68 ShellWindow::CreateParams::CreateParams() |
69 : frame(ShellWindow::CreateParams::FRAME_CHROME), | 69 : frame(ShellWindow::CreateParams::FRAME_CHROME), |
| 70 transparent_background(false), |
70 bounds(-1, -1, kDefaultWidth, kDefaultHeight), | 71 bounds(-1, -1, kDefaultWidth, kDefaultHeight), |
71 restore_position(true), restore_size(true) { | 72 restore_position(true), restore_size(true) { |
72 } | 73 } |
73 | 74 |
74 ShellWindow::CreateParams::~CreateParams() { | 75 ShellWindow::CreateParams::~CreateParams() { |
75 } | 76 } |
76 | 77 |
77 ShellWindow* ShellWindow::Create(Profile* profile, | 78 ShellWindow* ShellWindow::Create(Profile* profile, |
78 const extensions::Extension* extension, | 79 const extensions::Extension* extension, |
79 const GURL& url, | 80 const GURL& url, |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 if (window_key_.empty()) | 473 if (window_key_.empty()) |
473 return; | 474 return; |
474 | 475 |
475 extensions::ShellWindowGeometryCache* cache = | 476 extensions::ShellWindowGeometryCache* cache = |
476 extensions::ExtensionSystem::Get(profile())-> | 477 extensions::ExtensionSystem::Get(profile())-> |
477 shell_window_geometry_cache(); | 478 shell_window_geometry_cache(); |
478 | 479 |
479 gfx::Rect bounds = native_window_->GetBounds(); | 480 gfx::Rect bounds = native_window_->GetBounds(); |
480 cache->SaveGeometry(extension()->id(), window_key_, bounds); | 481 cache->SaveGeometry(extension()->id(), window_key_, bounds); |
481 } | 482 } |
OLD | NEW |