summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/frame/browser_frame_win.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 22:03:10 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 22:03:10 +0000
commit94098fe02a8c5950df6453ccca7621a2d2a6816f (patch)
tree202c8855a76a7e11bb88fb46fe409a3c4d0888cd /chrome/browser/ui/views/frame/browser_frame_win.cc
parent172f155f817cc56e1ca36bee6aeeca7f8f95bb64 (diff)
downloadchromium_src-94098fe02a8c5950df6453ccca7621a2d2a6816f.zip
chromium_src-94098fe02a8c5950df6453ccca7621a2d2a6816f.tar.gz
chromium_src-94098fe02a8c5950df6453ccca7621a2d2a6816f.tar.bz2
Move WindowDelegate and NonClientView creation and management to Window.
This makes WindowGtk/WindowWin a little uglier for now, will improve with consolidation of more functions into Window. BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6621033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/frame/browser_frame_win.cc')
-rw-r--r--chrome/browser/ui/views/frame/browser_frame_win.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/ui/views/frame/browser_frame_win.cc b/chrome/browser/ui/views/frame/browser_frame_win.cc
index 9638f10..54b6e41 100644
--- a/chrome/browser/ui/views/frame/browser_frame_win.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_win.cc
@@ -56,7 +56,7 @@ BrowserFrameWin::BrowserFrameWin(BrowserView* browser_view, Profile* profile)
frame_initialized_(false),
profile_(profile) {
browser_view_->set_frame(this);
- GetNonClientView()->SetFrameView(CreateFrameViewForWindow());
+ non_client_view()->SetFrameView(CreateFrameViewForWindow());
// Don't focus anything on creation, selecting a tab will set the focus.
set_focus_on_creation(false);
}
@@ -139,7 +139,7 @@ void BrowserFrameWin::TabStripDisplayModeChanged() {
gfx::Insets BrowserFrameWin::GetClientAreaInsets() const {
// Use the default client insets for an opaque frame or a glass popup/app
// frame.
- if (!GetNonClientView()->UseNativeFrame() ||
+ if (!non_client_view()->UseNativeFrame() ||
!browser_view_->IsBrowserTypeNormal()) {
return WindowWin::GetClientAreaInsets();
}
@@ -200,7 +200,7 @@ LRESULT BrowserFrameWin::OnNCActivate(BOOL active) {
LRESULT BrowserFrameWin::OnNCHitTest(const CPoint& pt) {
// Only do DWM hit-testing when we are using the native frame.
- if (GetNonClientView()->UseNativeFrame()) {
+ if (non_client_view()->UseNativeFrame()) {
LRESULT result;
if (DwmDefWindowProc(GetNativeView(), WM_NCHITTEST, 0,
MAKELPARAM(pt.x, pt.y), &result)) {
@@ -224,8 +224,8 @@ void BrowserFrameWin::OnWindowPosChanged(WINDOWPOS* window_pos) {
// SWP_SHOWWINDOW, however callers typically are careful about not specifying
// this flag unless necessary to avoid flicker.
if (window_pos->flags & SWP_SHOWWINDOW) {
- GetNonClientView()->Layout();
- GetNonClientView()->SchedulePaint();
+ non_client_view()->Layout();
+ non_client_view()->SchedulePaint();
}
}
@@ -283,7 +283,7 @@ views::RootView* BrowserFrameWin::CreateRootView() {
void BrowserFrameWin::UpdateDWMFrame() {
// Nothing to do yet, or we're not showing a DWM frame.
- if (!GetClientView() || !AlwaysUseNativeFrame())
+ if (!client_view() || !AlwaysUseNativeFrame())
return;
MARGINS margins = { 0 };