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

Side by Side Diff: chrome/browser/ui/views/ash/panel_view_aura.cc

Issue 10409088: Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum… (Closed) Base URL: svn://chrome-svn/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/views/ash/panel_view_aura.h" 5 #include "chrome/browser/ui/views/ash/panel_view_aura.h"
6 6
7 #include "ash/wm/panel_frame_view.h" 7 #include "ash/wm/panel_frame_view.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" 9 #include "chrome/browser/extensions/extension_function_dispatcher.h"
10 #include "chrome/browser/extensions/extension_process_manager.h" 10 #include "chrome/browser/extensions/extension_process_manager.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 PanelHost::~PanelHost() { 102 PanelHost::~PanelHost() {
103 } 103 }
104 104
105 void PanelHost::Init(const GURL& url) { 105 void PanelHost::Init(const GURL& url) {
106 site_instance_ = content::SiteInstance::CreateForURL(profile_, url); 106 site_instance_ = content::SiteInstance::CreateForURL(profile_, url);
107 107
108 web_contents_.reset(content::WebContents::Create( 108 web_contents_.reset(content::WebContents::Create(
109 profile_, site_instance_.get(), MSG_ROUTING_NONE, NULL, NULL)); 109 profile_, site_instance_.get(), MSG_ROUTING_NONE, NULL, NULL));
110 web_contents_->SetViewType(chrome::VIEW_TYPE_PANEL); 110 chrome::SetViewType(web_contents_.get(), chrome::VIEW_TYPE_PANEL);
111 web_contents_->SetDelegate(this); 111 web_contents_->SetDelegate(this);
112 Observe(web_contents_.get()); 112 Observe(web_contents_.get());
113 113
114 web_contents_->GetController().LoadURL( 114 web_contents_->GetController().LoadURL(
115 url, content::Referrer(), content::PAGE_TRANSITION_LINK, std::string()); 115 url, content::Referrer(), content::PAGE_TRANSITION_LINK, std::string());
116 } 116 }
117 117
118 ExtensionWindowController* PanelHost::GetExtensionWindowController() const { 118 ExtensionWindowController* PanelHost::GetExtensionWindowController() const {
119 return panel_view_->extension_window_controller(); 119 return panel_view_->extension_window_controller();
120 } 120 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 } 440 }
441 441
442 void PanelViewAura::FlashFrame(bool flash) { 442 void PanelViewAura::FlashFrame(bool flash) {
443 // TODO(stevenjb): Implement 443 // TODO(stevenjb): Implement
444 NOTIMPLEMENTED(); 444 NOTIMPLEMENTED();
445 } 445 }
446 446
447 bool PanelViewAura::IsAlwaysOnTop() const { 447 bool PanelViewAura::IsAlwaysOnTop() const {
448 return true; 448 return true;
449 } 449 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698