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

Side by Side Diff: chrome/browser/chromeos/frame/panel_controller.cc

Issue 8539051: aura: Touch state file after first browser is ready. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update more includes Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/frame/panel_controller.h" 5 #include "chrome/browser/chromeos/frame/panel_controller.h"
6 6
7 #if defined(TOUCH_UI) 7 #if defined(TOUCH_UI)
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #include <X11/extensions/XInput2.h> 9 #include <X11/extensions/XInput2.h>
10 #endif 10 #endif
(...skipping 19 matching lines...) Expand all
30 #include "ui/gfx/canvas_skia.h" 30 #include "ui/gfx/canvas_skia.h"
31 #include "views/controls/button/image_button.h" 31 #include "views/controls/button/image_button.h"
32 #include "views/controls/image_view.h" 32 #include "views/controls/image_view.h"
33 #include "views/controls/label.h" 33 #include "views/controls/label.h"
34 #include "views/events/event.h" 34 #include "views/events/event.h"
35 #include "views/painter.h" 35 #include "views/painter.h"
36 #include "views/view.h" 36 #include "views/view.h"
37 #include "views/widget/widget.h" 37 #include "views/widget/widget.h"
38 38
39 #if defined(TOOLKIT_USES_GTK) 39 #if defined(TOOLKIT_USES_GTK)
40 #include "chrome/browser/chromeos/wm_ipc.h" 40 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h"
41 #endif 41 #endif
42 42
43 #if defined(TOUCH_UI) 43 #if defined(TOUCH_UI)
44 namespace { 44 namespace {
45 45
46 gfx::Point RootLocationFromXEvent(const XEvent* xev) { 46 gfx::Point RootLocationFromXEvent(const XEvent* xev) {
47 switch (xev->type) { 47 switch (xev->type) {
48 case ButtonPress: 48 case ButtonPress:
49 case ButtonRelease: 49 case ButtonRelease:
50 return gfx::Point(xev->xbutton.x_root, xev->xbutton.y_root); 50 return gfx::Point(xev->xbutton.x_root, xev->xbutton.y_root);
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 views::Button* sender, const views::Event& event) { 524 views::Button* sender, const views::Event& event) {
525 if (panel_controller_ && sender == close_button_) 525 if (panel_controller_ && sender == close_button_)
526 panel_controller_->OnCloseButtonPressed(); 526 panel_controller_->OnCloseButtonPressed();
527 } 527 }
528 528
529 PanelController::TitleContentView::~TitleContentView() { 529 PanelController::TitleContentView::~TitleContentView() {
530 VLOG(1) << "panel: delete " << this; 530 VLOG(1) << "panel: delete " << this;
531 } 531 }
532 532
533 } // namespace chromeos 533 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698