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

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

Issue 42490: Experiments with a new tabstrip + animator (Closed) Base URL: svn://chrome-svn.corp.google.com/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
« no previous file with comments | « views/widget/widget_gtk.h ('k') | views/widget/widget_win.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/widget_gtk.h" 5 #include "views/widget/widget_gtk.h"
6 6
7 #include "app/gfx/path.h" 7 #include "app/gfx/path.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "views/fill_layout.h" 9 #include "views/fill_layout.h"
10 #include "views/widget/default_theme_provider.h" 10 #include "views/widget/default_theme_provider.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 bool WidgetGtk::IsVisible() const { 361 bool WidgetGtk::IsVisible() const {
362 return GTK_WIDGET_VISIBLE(widget_); 362 return GTK_WIDGET_VISIBLE(widget_);
363 } 363 }
364 364
365 bool WidgetGtk::IsActive() const { 365 bool WidgetGtk::IsActive() const {
366 // If this only applies to windows, it shouldn't be in widget. 366 // If this only applies to windows, it shouldn't be in widget.
367 DCHECK(GTK_IS_WINDOW(widget_)); 367 DCHECK(GTK_IS_WINDOW(widget_));
368 return gtk_window_is_active(GTK_WINDOW(widget_)); 368 return gtk_window_is_active(GTK_WINDOW(widget_));
369 } 369 }
370 370
371 void WidgetGtk::GenerateMousePressedForView(View* view,
372 const gfx::Point& point) {
373 NOTIMPLEMENTED();
374 }
375
371 TooltipManager* WidgetGtk::GetTooltipManager() { 376 TooltipManager* WidgetGtk::GetTooltipManager() {
372 return tooltip_manager_.get(); 377 return tooltip_manager_.get();
373 } 378 }
374 379
375 bool WidgetGtk::GetAccelerator(int cmd_id, Accelerator* accelerator) { 380 bool WidgetGtk::GetAccelerator(int cmd_id, Accelerator* accelerator) {
376 NOTIMPLEMENTED(); 381 NOTIMPLEMENTED();
377 return false; 382 return false;
378 } 383 }
379 384
380 Window* WidgetGtk::GetWindow() { 385 Window* WidgetGtk::GetWindow() {
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 void WidgetGtk::HandleGrabBroke() { 824 void WidgetGtk::HandleGrabBroke() {
820 if (has_capture_) { 825 if (has_capture_) {
821 if (is_mouse_down_) 826 if (is_mouse_down_)
822 root_view_->ProcessMouseDragCanceled(); 827 root_view_->ProcessMouseDragCanceled();
823 is_mouse_down_ = false; 828 is_mouse_down_ = false;
824 has_capture_ = false; 829 has_capture_ = false;
825 } 830 }
826 } 831 }
827 832
828 } // namespace views 833 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget_gtk.h ('k') | views/widget/widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698