diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 20:51:20 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 20:51:20 +0000 |
commit | a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd (patch) | |
tree | d8283a980977f11c43542016d57f698d3a83b73d /chrome/browser/views/frame | |
parent | 933cc00eb856db684b9e64b7486ca20edbb2c3ea (diff) | |
download | chromium_src-a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd.zip chromium_src-a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd.tar.gz chromium_src-a0dde12f2e4f92f1a59885c45cfecd10dbfdfdfd.tar.bz2 |
Rename Container->Widget
R=erg
review url = http://codereview.chromium.org/11348/show
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5849 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r-- | chrome/browser/views/frame/aero_glass_frame.cc | 2 | ||||
-rw-r--r-- | chrome/browser/views/frame/aero_glass_frame.h | 2 | ||||
-rw-r--r-- | chrome/browser/views/frame/aero_glass_non_client_view.cc | 4 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 24 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_frame.cc | 2 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_frame.h | 2 | ||||
-rw-r--r-- | chrome/browser/views/frame/opaque_non_client_view.cc | 2 |
7 files changed, 19 insertions, 19 deletions
diff --git a/chrome/browser/views/frame/aero_glass_frame.cc b/chrome/browser/views/frame/aero_glass_frame.cc index a24e274..5694163 100644 --- a/chrome/browser/views/frame/aero_glass_frame.cc +++ b/chrome/browser/views/frame/aero_glass_frame.cc @@ -91,7 +91,7 @@ views::Window* AeroGlassFrame::GetWindow() { } /////////////////////////////////////////////////////////////////////////////// -// AeroGlassFrame, views::ContainerWin overrides: +// AeroGlassFrame, views::WidgetWin overrides: bool AeroGlassFrame::AcceleratorPressed(views::Accelerator* accelerator) { return browser_view_->AcceleratorPressed(*accelerator); diff --git a/chrome/browser/views/frame/aero_glass_frame.h b/chrome/browser/views/frame/aero_glass_frame.h index 86df734..7daa04a 100644 --- a/chrome/browser/views/frame/aero_glass_frame.h +++ b/chrome/browser/views/frame/aero_glass_frame.h @@ -39,7 +39,7 @@ class AeroGlassFrame : public BrowserFrame, virtual views::Window* GetWindow(); protected: - // Overridden from views::ContainerWin: + // Overridden from views::WidgetWin: virtual bool AcceleratorPressed(views::Accelerator* accelerator); virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator); virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); diff --git a/chrome/browser/views/frame/aero_glass_non_client_view.cc b/chrome/browser/views/frame/aero_glass_non_client_view.cc index 8e6694b..2f5b18c 100644 --- a/chrome/browser/views/frame/aero_glass_non_client_view.cc +++ b/chrome/browser/views/frame/aero_glass_non_client_view.cc @@ -181,7 +181,7 @@ gfx::Size AeroGlassNonClientView::CalculateWindowSizeForClientSize( CPoint AeroGlassNonClientView::GetSystemMenuPoint() const { CPoint offset(0, 0); - MapWindowPoints(GetContainer()->GetHWND(), HWND_DESKTOP, &offset, 1); + MapWindowPoints(GetWidget()->GetHWND(), HWND_DESKTOP, &offset, 1); return offset; } @@ -260,7 +260,7 @@ void AeroGlassNonClientView::ViewHierarchyChanged(bool is_add, views::View* parent, views::View* child) { if (is_add && child == this) { - DCHECK(GetContainer()); + DCHECK(GetWidget()); DCHECK(frame_->client_view()->GetParent() != this); AddChildView(frame_->client_view()); } diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index 2b6af47..8dbeb98 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -318,7 +318,7 @@ void BrowserView::RegisterBrowserViewPrefs(PrefService* prefs) { void BrowserView::Init() { // Stow a pointer to this object onto the window handle so that we can get // at it later when all we have is a HWND. - SetProp(GetContainer()->GetHWND(), kBrowserWindowKey, this); + SetProp(GetWidget()->GetHWND(), kBrowserWindowKey, this); // Start a hung plugin window detector for this browser object (as long as // hang detection is not disabled). @@ -342,7 +342,7 @@ void BrowserView::Init() { set_contents_view(contents_container_); AddChildView(contents_container_); - status_bubble_.reset(new StatusBubble(GetContainer())); + status_bubble_.reset(new StatusBubble(GetWidget())); #ifdef CHROME_PERSONALIZATION EnablePersonalization(CommandLine().HasSwitch(switches::kEnableP13n)); @@ -405,7 +405,7 @@ void BrowserView::FlashFrame() { } void* BrowserView::GetNativeHandle() { - return GetContainer()->GetHWND(); + return GetWidget()->GetHWND(); } TabStrip* BrowserView::GetTabStrip() const { @@ -525,7 +525,7 @@ void BrowserView::ToggleBookmarkBar() { void BrowserView::ShowAboutChromeDialog() { views::Window::CreateChromeWindow( - GetContainer()->GetHWND(), gfx::Rect(), + GetWidget()->GetHWND(), gfx::Rect(), new AboutChromeView(browser_->profile()))->Show(); } @@ -564,25 +564,25 @@ void BrowserView::ShowReportBugDialog() { // Grab an exact snapshot of the window that the user is seeing (i.e. as // rendered--do not re-render, and include windowed plugins) std::vector<unsigned char> *screenshot_png = new std::vector<unsigned char>; - win_util::GrabWindowSnapshot(GetContainer()->GetHWND(), screenshot_png); + win_util::GrabWindowSnapshot(GetWidget()->GetHWND(), screenshot_png); // the BugReportView takes ownership of the png data, and will dispose of // it in its destructor. bug_report_view->set_png_data(screenshot_png); // Create and show the dialog - views::Window::CreateChromeWindow(GetContainer()->GetHWND(), gfx::Rect(), + views::Window::CreateChromeWindow(GetWidget()->GetHWND(), gfx::Rect(), bug_report_view)->Show(); } void BrowserView::ShowClearBrowsingDataDialog() { views::Window::CreateChromeWindow( - GetContainer()->GetHWND(), gfx::Rect(), + GetWidget()->GetHWND(), gfx::Rect(), new ClearBrowsingDataView(browser_->profile()))->Show(); } void BrowserView::ShowImportDialog() { views::Window::CreateChromeWindow( - GetContainer()->GetHWND(), gfx::Rect(), + GetWidget()->GetHWND(), gfx::Rect(), new ImporterView(browser_->profile()))->Show(); } @@ -597,7 +597,7 @@ void BrowserView::ShowPasswordManager() { void BrowserView::ShowHTMLDialog(HtmlDialogContentsDelegate* delegate, void* parent_window) { HWND parent_hwnd = reinterpret_cast<HWND>(parent_window); - parent_hwnd = parent_hwnd ? parent_hwnd : GetContainer()->GetHWND(); + parent_hwnd = parent_hwnd ? parent_hwnd : GetWidget()->GetHWND(); HtmlDialogView* html_view = new HtmlDialogView(browser_.get(), browser_->profile(), delegate); @@ -909,7 +909,7 @@ void BrowserView::Layout() { void BrowserView::ViewHierarchyChanged(bool is_add, views::View* parent, views::View* child) { - if (is_add && child == this && GetContainer() && !initialized_) { + if (is_add && child == this && GetWidget() && !initialized_) { Init(); initialized_ = true; } @@ -1210,7 +1210,7 @@ void BrowserView::LoadAccelerators() { CopyAcceleratorTable(accelerator_table, accelerators, count); views::FocusManager* focus_manager = - views::FocusManager::GetFocusManager(GetContainer()->GetHWND()); + views::FocusManager::GetFocusManager(GetWidget()->GetHWND()); DCHECK(focus_manager); // Let's build our own accelerator table. @@ -1325,7 +1325,7 @@ void BrowserView::InitHangMonitor() { int hung_plugin_detect_freq = pref_service->GetInteger(prefs::kHungPluginDetectFrequency); if ((hung_plugin_detect_freq > 0) && - hung_window_detector_.Initialize(GetContainer()->GetHWND(), + hung_window_detector_.Initialize(GetWidget()->GetHWND(), plugin_message_response_timeout)) { ticker_.set_tick_interval(hung_plugin_detect_freq); ticker_.RegisterTickHandler(&hung_window_detector_); diff --git a/chrome/browser/views/frame/opaque_frame.cc b/chrome/browser/views/frame/opaque_frame.cc index f04d8e2..9a7f356 100644 --- a/chrome/browser/views/frame/opaque_frame.cc +++ b/chrome/browser/views/frame/opaque_frame.cc @@ -71,7 +71,7 @@ int OpaqueFrame::GetShowState() const { } /////////////////////////////////////////////////////////////////////////////// -// OpaqueFrame, views::ContainerWin overrides: +// OpaqueFrame, views::WidgetWin overrides: bool OpaqueFrame::AcceleratorPressed(views::Accelerator* accelerator) { return browser_view_->AcceleratorPressed(*accelerator); diff --git a/chrome/browser/views/frame/opaque_frame.h b/chrome/browser/views/frame/opaque_frame.h index f28d782..13c20d2 100644 --- a/chrome/browser/views/frame/opaque_frame.h +++ b/chrome/browser/views/frame/opaque_frame.h @@ -44,7 +44,7 @@ class OpaqueFrame : public BrowserFrame, virtual void UpdateWindowIcon(); virtual int GetShowState() const; - // Overridden from views::ContainerWin: + // Overridden from views::WidgetWin: virtual bool AcceleratorPressed(views::Accelerator* accelerator); virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator); virtual void OnEndSession(BOOL ending, UINT logoff); diff --git a/chrome/browser/views/frame/opaque_non_client_view.cc b/chrome/browser/views/frame/opaque_non_client_view.cc index 1f30ae5..f7bfe22 100644 --- a/chrome/browser/views/frame/opaque_non_client_view.cc +++ b/chrome/browser/views/frame/opaque_non_client_view.cc @@ -667,7 +667,7 @@ void OpaqueNonClientView::ViewHierarchyChanged(bool is_add, views::View* parent, views::View* child) { if (is_add && child == this) { - DCHECK(GetContainer()); + DCHECK(GetWidget()); DCHECK(frame_->client_view()->GetParent() != this); AddChildView(frame_->client_view()); |