summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r--chrome/renderer/render_view.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 5dd3359..60fddbf 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2244,7 +2244,7 @@ bool RenderView::isSelectTrailingWhitespaceEnabled() {
}
void RenderView::didChangeSelection(bool is_empty_selection) {
-#if defined(USE_X11) || defined(OS_MACOSX)
+#if defined(OS_POSIX)
if (!handling_input_event_)
return;
// TODO(estade): investigate incremental updates to the selection so that we
@@ -2266,7 +2266,7 @@ void RenderView::didChangeSelection(bool is_empty_selection) {
Send(new ViewHostMsg_SelectionChanged(routing_id_,
last_selection_));
}
-#endif
+#endif // defined(OS_POSIX)
}
void RenderView::didExecuteCommand(const WebString& command_name) {
@@ -5633,8 +5633,7 @@ void RenderView::OnPageTranslated() {
}
#if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
-WebKit::WebGeolocationClient* RenderView::geolocationClient()
-{
+WebKit::WebGeolocationClient* RenderView::geolocationClient() {
if (!geolocation_dispatcher_.get())
geolocation_dispatcher_.reset(new GeolocationDispatcher(this));
return geolocation_dispatcher_.get();