Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: views/widget/root_view.cc

Issue 151099: Fixes compile bugs for views on gtk. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/view_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/widget/root_view.h" 5 #include "views/widget/root_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/drag_drop_types.h" 9 #include "app/drag_drop_types.h"
10 #include "app/gfx/canvas.h" 10 #include "app/gfx/canvas.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 drag_view_ = NULL; 259 drag_view_ = NULL;
260 260
261 if (default_keyboard_handler_ == child) { 261 if (default_keyboard_handler_ == child) {
262 default_keyboard_handler_ = NULL; 262 default_keyboard_handler_ = NULL;
263 } 263 }
264 264
265 FocusManager* focus_manager = widget_->GetFocusManager(); 265 FocusManager* focus_manager = widget_->GetFocusManager();
266 // An unparanted RootView does not have a FocusManager. 266 // An unparanted RootView does not have a FocusManager.
267 if (focus_manager) 267 if (focus_manager)
268 focus_manager->ViewRemoved(parent, child); 268 focus_manager->ViewRemoved(parent, child);
269 #if defined(OS_WIN)
269 ViewStorage::GetSharedInstance()->ViewRemoved(parent, child); 270 ViewStorage::GetSharedInstance()->ViewRemoved(parent, child);
271 #else
272 NOTIMPLEMENTED();
273 #endif
270 } 274 }
271 } 275 }
272 276
273 void RootView::SetFocusOnMousePressed(bool f) { 277 void RootView::SetFocusOnMousePressed(bool f) {
274 focus_on_mouse_pressed_ = f; 278 focus_on_mouse_pressed_ = f;
275 } 279 }
276 280
277 bool RootView::OnMousePressed(const MouseEvent& e) { 281 bool RootView::OnMousePressed(const MouseEvent& e) {
278 // This function does not normally handle non-client messages except for 282 // This function does not normally handle non-client messages except for
279 // non-client double-clicks. Actually, all double-clicks are special as the 283 // non-client double-clicks. Actually, all double-clicks are special as the
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 previous_cursor_ = NULL; 943 previous_cursor_ = NULL;
940 } 944 }
941 #elif defined(OS_LINUX) 945 #elif defined(OS_LINUX)
942 gdk_window_set_cursor(GetWidget()->GetNativeView()->window, cursor); 946 gdk_window_set_cursor(GetWidget()->GetNativeView()->window, cursor);
943 if (cursor) 947 if (cursor)
944 gdk_cursor_destroy(cursor); 948 gdk_cursor_destroy(cursor);
945 #endif 949 #endif
946 } 950 }
947 951
948 } // namespace views 952 } // namespace views
OLDNEW
« no previous file with comments | « views/view_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698