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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_view.cc

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 #include "chrome/browser/ui/views/extensions/extension_view.h" 5 #include "chrome/browser/ui/views/extensions/extension_view.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/ui/views/extensions/extension_popup.h" 8 #include "chrome/browser/ui/views/extensions/extension_popup.h"
9 #include "chrome/common/view_type.h" 9 #include "chrome/common/view_type.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 void ExtensionView::SetIsClipped(bool is_clipped) { 50 void ExtensionView::SetIsClipped(bool is_clipped) {
51 if (is_clipped_ != is_clipped) { 51 if (is_clipped_ != is_clipped) {
52 is_clipped_ = is_clipped; 52 is_clipped_ = is_clipped;
53 if (visible()) 53 if (visible())
54 ShowIfCompletelyLoaded(); 54 ShowIfCompletelyLoaded();
55 } 55 }
56 } 56 }
57 57
58 gfx::NativeCursor ExtensionView::GetCursor(const views::MouseEvent& event) { 58 gfx::NativeCursor ExtensionView::GetCursor(const ui::MouseEvent& event) {
59 return gfx::kNullCursor; 59 return gfx::kNullCursor;
60 } 60 }
61 61
62 void ExtensionView::SetVisible(bool is_visible) { 62 void ExtensionView::SetVisible(bool is_visible) {
63 if (is_visible != visible()) { 63 if (is_visible != visible()) {
64 NativeViewHost::SetVisible(is_visible); 64 NativeViewHost::SetVisible(is_visible);
65 65
66 // Also tell RenderWidgetHostView the new visibility. Despite its name, it 66 // Also tell RenderWidgetHostView the new visibility. Despite its name, it
67 // is not part of the View hierarchy and does not know about the change 67 // is not part of the View hierarchy and does not know about the change
68 // unless we tell it. 68 // unless we tell it.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 gfx::Size min_size(ExtensionPopup::kMinWidth, 170 gfx::Size min_size(ExtensionPopup::kMinWidth,
171 ExtensionPopup::kMinHeight); 171 ExtensionPopup::kMinHeight);
172 gfx::Size max_size(ExtensionPopup::kMaxWidth, 172 gfx::Size max_size(ExtensionPopup::kMaxWidth,
173 ExtensionPopup::kMaxHeight); 173 ExtensionPopup::kMaxHeight);
174 render_view_host()->EnableAutoResize(min_size, max_size); 174 render_view_host()->EnableAutoResize(min_size, max_size);
175 } 175 }
176 176
177 if (container_) 177 if (container_)
178 container_->OnViewWasResized(); 178 container_->OnViewWasResized();
179 } 179 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_view.h ('k') | chrome/browser/ui/views/find_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698