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

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

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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) 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 "content/browser/web_contents/web_contents_view_aura.h" 5 #include "content/browser/web_contents/web_contents_view_aura.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/browser/renderer_host/dip_util.h" 10 #include "content/browser/renderer_host/dip_util.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 return; 518 return;
519 if (parent_) 519 if (parent_)
520 parent_->RemoveObserver(this); 520 parent_->RemoveObserver(this);
521 parent_ = parent; 521 parent_ = parent;
522 if (parent) 522 if (parent)
523 parent->AddObserver(this); 523 parent->AddObserver(this);
524 } 524 }
525 525
526 virtual void OnWindowBoundsChanged(aura::Window* window, 526 virtual void OnWindowBoundsChanged(aura::Window* window,
527 const gfx::Rect& old_bounds, 527 const gfx::Rect& old_bounds,
528 const gfx::Rect& new_bounds) { 528 const gfx::Rect& new_bounds) OVERRIDE {
529 SendScreenRects(); 529 SendScreenRects();
530 } 530 }
531 531
532 virtual void OnWindowAddedToRootWindow(aura::Window* window) OVERRIDE { 532 virtual void OnWindowAddedToRootWindow(aura::Window* window) OVERRIDE {
533 if (window != parent_) 533 if (window != parent_)
534 window->GetRootWindow()->AddRootWindowObserver(this); 534 window->GetRootWindow()->AddRootWindowObserver(this);
535 } 535 }
536 536
537 virtual void OnWindowRemovingFromRootWindow(aura::Window* window) OVERRIDE { 537 virtual void OnWindowRemovingFromRootWindow(aura::Window* window) OVERRIDE {
538 if (window != parent_) 538 if (window != parent_)
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 event.location(), 1296 event.location(),
1297 gfx::Screen::GetScreenFor(GetNativeView())->GetCursorScreenPoint(), 1297 gfx::Screen::GetScreenFor(GetNativeView())->GetCursorScreenPoint(),
1298 ConvertAuraEventFlagsToWebInputEventModifiers(event.flags())); 1298 ConvertAuraEventFlagsToWebInputEventModifiers(event.flags()));
1299 if (drag_dest_delegate_) 1299 if (drag_dest_delegate_)
1300 drag_dest_delegate_->OnDrop(); 1300 drag_dest_delegate_->OnDrop();
1301 current_drop_data_.reset(); 1301 current_drop_data_.reset();
1302 return current_drag_op_; 1302 return current_drag_op_;
1303 } 1303 }
1304 1304
1305 } // namespace content 1305 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698