summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 20:58:51 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-31 20:58:51 +0000
commit7f16087b563ff4f432f2c25a7922be39c0656b1f (patch)
treeecbaaa56407a93150577eb26c8e184aa5ad929ef /views
parentcbc13c3c3d3eac16314794f995582da7a9ea641a (diff)
downloadchromium_src-7f16087b563ff4f432f2c25a7922be39c0656b1f.zip
chromium_src-7f16087b563ff4f432f2c25a7922be39c0656b1f.tar.gz
chromium_src-7f16087b563ff4f432f2c25a7922be39c0656b1f.tar.bz2
Fix clang failure; out-of-line a virtual.
BUG=none TEST=linux clang build fix. Review URL: http://codereview.chromium.org/6780040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/widget.cc4
-rw-r--r--views/widget/widget.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 09a9eb3..2a31aa1 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -427,4 +427,8 @@ bool Widget::EnsureCompositor() {
return compositor_.get() != NULL;
}
+bool Widget::ShouldReleaseCaptureOnMouseReleased() const {
+ return true;
+}
+
} // namespace views
diff --git a/views/widget/widget.h b/views/widget/widget.h
index eb61361..39bb915 100644
--- a/views/widget/widget.h
+++ b/views/widget/widget.h
@@ -323,7 +323,7 @@ class Widget : public internal::NativeWidgetDelegate,
bool EnsureCompositor();
// Returns whether capture should be released on mouse release.
- virtual bool ShouldReleaseCaptureOnMouseReleased() const { return true; }
+ virtual bool ShouldReleaseCaptureOnMouseReleased() const;
NativeWidget* native_widget_;