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

Side by Side Diff: views/widget/widget_gtk.h

Issue 6507028: Remove usages of RootView from View by moving relevant RootView API methods t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_
6 #define VIEWS_WIDGET_WIDGET_GTK_H_ 6 #define VIEWS_WIDGET_WIDGET_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual Window* GetWindow(); 191 virtual Window* GetWindow();
192 virtual const Window* GetWindow() const; 192 virtual const Window* GetWindow() const;
193 virtual void SetNativeWindowProperty(const char* name, void* value); 193 virtual void SetNativeWindowProperty(const char* name, void* value);
194 virtual void* GetNativeWindowProperty(const char* name); 194 virtual void* GetNativeWindowProperty(const char* name);
195 virtual ThemeProvider* GetThemeProvider() const; 195 virtual ThemeProvider* GetThemeProvider() const;
196 virtual ThemeProvider* GetDefaultThemeProvider() const; 196 virtual ThemeProvider* GetDefaultThemeProvider() const;
197 virtual FocusManager* GetFocusManager(); 197 virtual FocusManager* GetFocusManager();
198 virtual void ViewHierarchyChanged(bool is_add, View *parent, 198 virtual void ViewHierarchyChanged(bool is_add, View *parent,
199 View *child); 199 View *child);
200 virtual bool ContainsNativeView(gfx::NativeView native_view); 200 virtual bool ContainsNativeView(gfx::NativeView native_view);
201 virtual void StartDragForViewFromMouseEvent(View* view,
202 const OSExchangeData& data,
203 int operation);
204 virtual View* GetDraggedView();
201 205
202 // Overridden from FocusTraversable: 206 // Overridden from FocusTraversable:
203 virtual FocusSearch* GetFocusSearch(); 207 virtual FocusSearch* GetFocusSearch();
204 virtual FocusTraversable* GetFocusTraversableParent(); 208 virtual FocusTraversable* GetFocusTraversableParent();
205 virtual View* GetFocusTraversableParentView(); 209 virtual View* GetFocusTraversableParentView();
206 210
207 // Clears the focus on the native widget having the focus. 211 // Clears the focus on the native widget having the focus.
208 virtual void ClearNativeFocus(); 212 virtual void ClearNativeFocus();
209 213
210 // Handles a keyboard event by sending it to our focus manager. 214 // Handles a keyboard event by sending it to our focus manager.
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // for types other than TYPE_CHILD. 448 // for types other than TYPE_CHILD.
445 bool always_on_top_; 449 bool always_on_top_;
446 450
447 // If true, we enable the content widget's double buffering. 451 // If true, we enable the content widget's double buffering.
448 // This is false by default. 452 // This is false by default.
449 bool is_double_buffered_; 453 bool is_double_buffered_;
450 454
451 // Indicates if we should handle the upcoming Alt key release event. 455 // Indicates if we should handle the upcoming Alt key release event.
452 bool should_handle_menu_key_release_; 456 bool should_handle_menu_key_release_;
453 457
458 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the
459 // view the drag started from.
460 View* dragged_view_;
461
454 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); 462 DISALLOW_COPY_AND_ASSIGN(WidgetGtk);
455 }; 463 };
456 464
457 } // namespace views 465 } // namespace views
458 466
459 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ 467 #endif // VIEWS_WIDGET_WIDGET_GTK_H_
OLDNEW
« no previous file with comments | « views/widget/widget.h ('k') | views/widget/widget_gtk.cc » ('j') | views/widget/widget_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698