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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura.h

Issue 10391165: Notification for device scale factor change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo_main fix Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void OnBlur() OVERRIDE; 99 virtual void OnBlur() OVERRIDE;
100 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; 100 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE;
101 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 101 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
102 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 102 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
103 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; 103 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE;
104 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; 104 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE;
105 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; 105 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE;
106 virtual bool CanFocus() OVERRIDE; 106 virtual bool CanFocus() OVERRIDE;
107 virtual void OnCaptureLost() OVERRIDE; 107 virtual void OnCaptureLost() OVERRIDE;
108 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 108 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
109 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
109 virtual void OnWindowDestroying() OVERRIDE; 110 virtual void OnWindowDestroying() OVERRIDE;
110 virtual void OnWindowDestroyed() OVERRIDE; 111 virtual void OnWindowDestroyed() OVERRIDE;
111 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; 112 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
112 113
113 // Overridden from aura::client::DragDropDelegate: 114 // Overridden from aura::client::DragDropDelegate:
114 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; 115 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE;
115 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; 116 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE;
116 virtual void OnDragExited() OVERRIDE; 117 virtual void OnDragExited() OVERRIDE;
117 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; 118 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE;
118 119
(...skipping 22 matching lines...) Expand all
141 // We keep track of the render view host we're dragging over. If it changes 142 // We keep track of the render view host we're dragging over. If it changes
142 // during a drag, we need to re-send the DragEnter message. WARNING: 143 // during a drag, we need to re-send the DragEnter message. WARNING:
143 // this pointer should never be dereferenced. We only use it for comparing 144 // this pointer should never be dereferenced. We only use it for comparing
144 // pointers. 145 // pointers.
145 void* current_rvh_for_drag_; 146 void* current_rvh_for_drag_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); 148 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura);
148 }; 149 };
149 150
150 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698