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

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 1206763002: Really remove config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/engine/web/WebFrame.cpp ('k') | sky/engine/web/WebNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // traversal. Note that child node order may not match DOM node order! 62 // traversal. Note that child node order may not match DOM node order!
63 // detachFromParent() calls FrameLoaderClient::detachedFromParent(), which calls 63 // detachFromParent() calls FrameLoaderClient::detachedFromParent(), which calls
64 // WebFrame::frameDetached(). This triggers WebFrame to clear its reference to 64 // WebFrame::frameDetached(). This triggers WebFrame to clear its reference to
65 // LocalFrame, and also notifies the embedder via WebFrameClient that the frame is 65 // LocalFrame, and also notifies the embedder via WebFrameClient that the frame is
66 // detached. Most embedders will invoke close() on the WebFrame at this point, 66 // detached. Most embedders will invoke close() on the WebFrame at this point,
67 // triggering its deletion unless something else is still retaining a reference. 67 // triggering its deletion unless something else is still retaining a reference.
68 // 68 //
69 // Thie client is expected to be set whenever the WebLocalFrameImpl is attached to 69 // Thie client is expected to be set whenever the WebLocalFrameImpl is attached to
70 // the DOM. 70 // the DOM.
71 71
72 #include "sky/engine/config.h"
73 #include "sky/engine/web/WebLocalFrameImpl.h" 72 #include "sky/engine/web/WebLocalFrameImpl.h"
74 73
75 #include <algorithm> 74 #include <algorithm>
76 #include "base/strings/stringprintf.h" 75 #include "base/strings/stringprintf.h"
77 #include "mojo/common/data_pipe_utils.h" 76 #include "mojo/common/data_pipe_utils.h"
78 #include "mojo/public/cpp/system/data_pipe.h" 77 #include "mojo/public/cpp/system/data_pipe.h"
79 #include "sky/engine/bindings/exception_state.h" 78 #include "sky/engine/bindings/exception_state.h"
80 #include "sky/engine/bindings/exception_state_placeholder.h" 79 #include "sky/engine/bindings/exception_state_placeholder.h"
81 #include "sky/engine/core/dom/Document.h" 80 #include "sky/engine/core/dom/Document.h"
82 #include "sky/engine/core/dom/Node.h" 81 #include "sky/engine/core/dom/Node.h"
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 609
611 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse t, float contentScaleFactor) 610 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse t, float contentScaleFactor)
612 { 611 {
613 m_inputEventsOffsetForEmulation = offset; 612 m_inputEventsOffsetForEmulation = offset;
614 m_inputEventsScaleFactorForEmulation = contentScaleFactor; 613 m_inputEventsScaleFactorForEmulation = contentScaleFactor;
615 if (frame()->view()) 614 if (frame()->view())
616 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset ForEmulation, m_inputEventsScaleFactorForEmulation); 615 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset ForEmulation, m_inputEventsScaleFactorForEmulation);
617 } 616 }
618 617
619 } // namespace blink 618 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/web/WebFrame.cpp ('k') | sky/engine/web/WebNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698