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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 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
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/extension_view.h" 5 #include "chrome/browser/ui/views/extensions/extension_view.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/ui/views/extensions/extension_popup.h" 8 #include "chrome/browser/ui/views/extensions/extension_popup.h"
9 #include "chrome/common/chrome_view_type.h" 9 #include "chrome/common/chrome_view_type.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
(...skipping 16 matching lines...) Expand all
27 // called so the tab key events are forwarded to the renderer. 27 // called so the tab key events are forwarded to the renderer.
28 set_focusable(true); 28 set_focusable(true);
29 } 29 }
30 30
31 ExtensionView::~ExtensionView() { 31 ExtensionView::~ExtensionView() {
32 if (parent()) 32 if (parent())
33 parent()->RemoveChildView(this); 33 parent()->RemoveChildView(this);
34 CleanUp(); 34 CleanUp();
35 } 35 }
36 36
37 const Extension* ExtensionView::extension() const { 37 const extensions::Extension* ExtensionView::extension() const {
38 return host_->extension(); 38 return host_->extension();
39 } 39 }
40 40
41 content::RenderViewHost* ExtensionView::render_view_host() const { 41 content::RenderViewHost* ExtensionView::render_view_host() const {
42 return host_->render_view_host(); 42 return host_->render_view_host();
43 } 43 }
44 44
45 void ExtensionView::DidStopLoading() { 45 void ExtensionView::DidStopLoading() {
46 ShowIfCompletelyLoaded(); 46 ShowIfCompletelyLoaded();
47 } 47 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 gfx::Size min_size(ExtensionPopup::kMinWidth, 169 gfx::Size min_size(ExtensionPopup::kMinWidth,
170 ExtensionPopup::kMinHeight); 170 ExtensionPopup::kMinHeight);
171 gfx::Size max_size(ExtensionPopup::kMaxWidth, 171 gfx::Size max_size(ExtensionPopup::kMaxWidth,
172 ExtensionPopup::kMaxHeight); 172 ExtensionPopup::kMaxHeight);
173 render_view_host()->EnableAutoResize(min_size, max_size); 173 render_view_host()->EnableAutoResize(min_size, max_size);
174 } 174 }
175 175
176 if (container_) 176 if (container_)
177 container_->OnViewWasResized(); 177 container_->OnViewWasResized();
178 } 178 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_view.h ('k') | chrome/browser/ui/views/extensions/shell_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698