summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/constrained_window_impl.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-14 03:13:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-14 03:13:06 +0000
commite56bbc990c6855f286ebf74e88e1bca0227fe210 (patch)
tree5ed565ac79a99800fa5cc66b65d52dd40a61a032 /chrome/browser/views/constrained_window_impl.cc
parent6b33e4da472b3c474a3f1328fdba4a84d4a91886 (diff)
downloadchromium_src-e56bbc990c6855f286ebf74e88e1bca0227fe210.zip
chromium_src-e56bbc990c6855f286ebf74e88e1bca0227fe210.tar.gz
chromium_src-e56bbc990c6855f286ebf74e88e1bca0227fe210.tar.bz2
rollback again
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/constrained_window_impl.cc')
-rw-r--r--chrome/browser/views/constrained_window_impl.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc
index 8ffd4e0..3d0869a 100644
--- a/chrome/browser/views/constrained_window_impl.cc
+++ b/chrome/browser/views/constrained_window_impl.cc
@@ -368,7 +368,7 @@ int ConstrainedWindowFrameView::NonClientHitTest(const gfx::Point& point) {
if (!bounds().Contains(point))
return HTNOWHERE;
- int frame_component = container_->GetClientView()->NonClientHitTest(point);
+ int frame_component = container_->client_view()->NonClientHitTest(point);
if (frame_component != HTNOWHERE)
return frame_component;
@@ -378,7 +378,7 @@ int ConstrainedWindowFrameView::NonClientHitTest(const gfx::Point& point) {
int window_component = GetHTComponentForFrame(point, FrameBorderThickness(),
NonClientBorderThickness(), kResizeAreaCornerSize, kResizeAreaCornerSize,
- container_->GetDelegate()->CanResize());
+ container_->window_delegate()->CanResize());
// Fall back to the caption if no other component matches.
return (window_component == HTNOWHERE) ? HTCAPTION : window_component;
}
@@ -606,6 +606,10 @@ views::NonClientFrameView* ConstrainedWindowImpl::CreateFrameViewForWindow() {
return new ConstrainedWindowFrameView(this);
}
+void ConstrainedWindowImpl::UpdateWindowTitle() {
+ UpdateUI(TabContents::INVALIDATE_TITLE);
+}
+
void ConstrainedWindowImpl::ActivateConstrainedWindow() {
// Other pop-ups are simply moved to the front of the z-order.
SetWindowPos(HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
@@ -649,8 +653,8 @@ void ConstrainedWindowImpl::DidBecomeSelected() {
std::wstring ConstrainedWindowImpl::GetWindowTitle() const {
std::wstring display_title;
- if (GetDelegate())
- display_title = GetDelegate()->GetWindowTitle();
+ if (window_delegate())
+ display_title = window_delegate()->GetWindowTitle();
else
display_title = L"Untitled";
@@ -667,9 +671,9 @@ const gfx::Rect& ConstrainedWindowImpl::GetCurrentBounds() const {
ConstrainedWindowImpl::ConstrainedWindowImpl(
TabContents* owner,
views::WindowDelegate* window_delegate)
- : WindowWin(window_delegate),
+ : Window(window_delegate),
owner_(owner) {
- GetNonClientView()->SetFrameView(CreateFrameViewForWindow());
+ non_client_view_->SetFrameView(CreateFrameViewForWindow());
Init();
}
@@ -681,7 +685,7 @@ void ConstrainedWindowImpl::Init() {
}
void ConstrainedWindowImpl::InitAsDialog(const gfx::Rect& initial_bounds) {
- WindowWin::Init(owner_->GetNativeView(), initial_bounds);
+ Window::Init(owner_->GetNativeView(), initial_bounds);
ActivateConstrainedWindow();
}
@@ -715,7 +719,7 @@ void ConstrainedWindowImpl::OnDestroy() {
}
// Make sure we call super so that it can do its cleanup.
- WindowWin::OnDestroy();
+ Window::OnDestroy();
}
void ConstrainedWindowImpl::OnFinalMessage(HWND window) {
@@ -723,7 +727,7 @@ void ConstrainedWindowImpl::OnFinalMessage(HWND window) {
// list.
owner_->WillClose(this);
- WindowWin::OnFinalMessage(window);
+ WidgetWin::OnFinalMessage(window);
}
LRESULT ConstrainedWindowImpl::OnMouseActivate(HWND window,