diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-19 16:14:23 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-19 16:14:23 +0000 |
commit | a60397447c449f69f7f81486eb773c23b46fbc40 (patch) | |
tree | cf41c0621873b64dc6a816b376a81d236b863667 /chrome/browser/views/frame/browser_view.cc | |
parent | 97032cee2d8332f5d647953252d3c92db007cac9 (diff) | |
download | chromium_src-a60397447c449f69f7f81486eb773c23b46fbc40.zip chromium_src-a60397447c449f69f7f81486eb773c23b46fbc40.tar.gz chromium_src-a60397447c449f69f7f81486eb773c23b46fbc40.tar.bz2 |
Ifdef out some Windows dependencies. This is the first pass trying to get
browser_view compiling on Linux. I haven't figured out what we'll do with these
things longer-term.
Review URL: http://codereview.chromium.org/113585
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_view.cc')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index b8dd131..ddd2958 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -302,6 +302,7 @@ BrowserView::~BrowserView() { ticker_.UnregisterTickHandler(&hung_window_detector_); } +#if defined(OS_WIN) // static BrowserView* BrowserView::GetBrowserViewForHWND(HWND window) { if (IsWindow(window)) { @@ -311,6 +312,7 @@ BrowserView* BrowserView::GetBrowserViewForHWND(HWND window) { } return NULL; } +#endif int BrowserView::GetShowState() const { if (explicit_show_state != -1) @@ -569,6 +571,7 @@ bool BrowserView::IsActive() const { return frame_->GetWindow()->IsActive(); } +#if defined(OS_WIN) void BrowserView::FlashFrame() { FLASHWINFO fwi; fwi.cbSize = sizeof(fwi); @@ -578,6 +581,7 @@ void BrowserView::FlashFrame() { fwi.dwTimeout = 0; FlashWindowEx(&fwi); } +#endif gfx::NativeWindow BrowserView::GetNativeHandle() { return GetWidget()->GetNativeView(); @@ -637,6 +641,7 @@ bool BrowserView::IsMaximized() const { return frame_->GetWindow()->IsMaximized(); } +#if defined(OS_WIN) void BrowserView::SetFullscreen(bool fullscreen) { if (IsFullscreen() == fullscreen) return; // Nothing to do. @@ -692,6 +697,7 @@ void BrowserView::SetFullscreen(bool fullscreen) { Layout(); frame_->GetWindow()->PopForceHidden(); } +#endif bool BrowserView::IsFullscreen() const { return frame_->GetWindow()->IsFullscreen(); @@ -867,6 +873,7 @@ void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { delegate)->Show(); } +#if defined(OS_WIN) void BrowserView::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, void* parent_window) { HWND parent_hwnd = reinterpret_cast<HWND>(parent_window); @@ -876,6 +883,7 @@ void BrowserView::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, html_view->InitDialog(); html_view->window()->Show(); } +#endif void BrowserView::UserChangedTheme() { frame_->GetWindow()->GetNonClientView()->SetUseNativeFrame(false); @@ -1127,6 +1135,7 @@ bool BrowserView::CanClose() const { return true; } +#if defined(OS_WIN) int BrowserView::NonClientHitTest(const gfx::Point& point) { // Since the TabStrip only renders in some parts of the top of the window, // the un-obscured area is considered to be part of the non-client caption @@ -1205,6 +1214,7 @@ int BrowserView::NonClientHitTest(const gfx::Point& point) { // If the point is somewhere else, delegate to the default implementation. return views::ClientView::NonClientHitTest(point); } +#endif gfx::Size BrowserView::GetMinimumSize() { // TODO: In theory the tabstrip width should probably be |