OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/api/tabs/ash_panel_contents.h" | 5 #include "chrome/browser/extensions/api/tabs/ash_panel_contents.h" |
6 | 6 |
7 #include "apps/ui/native_app_window.h" | 7 #include "apps/ui/native_app_window.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 10 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 202 } |
203 | 203 |
204 void AshPanelContents::NativeWindowChanged(NativeAppWindow* native_app_window) { | 204 void AshPanelContents::NativeWindowChanged(NativeAppWindow* native_app_window) { |
205 if (window_controller_) | 205 if (window_controller_) |
206 window_controller_->NativeWindowChanged(); | 206 window_controller_->NativeWindowChanged(); |
207 } | 207 } |
208 | 208 |
209 void AshPanelContents::NativeWindowClosed() { | 209 void AshPanelContents::NativeWindowClosed() { |
210 } | 210 } |
211 | 211 |
| 212 void AshPanelContents::NativeWindowFirstShown() const { |
| 213 } |
| 214 |
212 content::WebContents* AshPanelContents::GetWebContents() const { | 215 content::WebContents* AshPanelContents::GetWebContents() const { |
213 return web_contents_.get(); | 216 return web_contents_.get(); |
214 } | 217 } |
215 | 218 |
216 void AshPanelContents::FaviconUpdated() { | 219 void AshPanelContents::FaviconUpdated() { |
217 gfx::Image new_image = gfx::Image::CreateFrom1xBitmap( | 220 gfx::Image new_image = gfx::Image::CreateFrom1xBitmap( |
218 launcher_favicon_loader_->GetFavicon()); | 221 launcher_favicon_loader_->GetFavicon()); |
219 host_->UpdateAppIcon(new_image); | 222 host_->UpdateAppIcon(new_image); |
220 } | 223 } |
221 | 224 |
(...skipping 13 matching lines...) Expand all Loading... |
235 | 238 |
236 content::WebContents* AshPanelContents::GetAssociatedWebContents() const { | 239 content::WebContents* AshPanelContents::GetAssociatedWebContents() const { |
237 return web_contents_.get(); | 240 return web_contents_.get(); |
238 } | 241 } |
239 | 242 |
240 void AshPanelContents::OnRequest( | 243 void AshPanelContents::OnRequest( |
241 const ExtensionHostMsg_Request_Params& params) { | 244 const ExtensionHostMsg_Request_Params& params) { |
242 extension_function_dispatcher_->Dispatch( | 245 extension_function_dispatcher_->Dispatch( |
243 params, web_contents_->GetRenderViewHost()); | 246 params, web_contents_->GetRenderViewHost()); |
244 } | 247 } |
OLD | NEW |