Skip to content

Commit

Permalink
open things in the proper frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Norton authored and comex committed Jul 10, 2010
1 parent 4be11e2 commit d162171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Player2/Classes/PluginFlashView.m
Expand Up @@ -15,6 +15,7 @@ @interface NSObject (FakeMethodsToMakeGCCShutUp)
- (id)webFrame;
- (id)windowObject;
- (WebFrame *)findFrameNamed:(NSString *)name;
- (void)webPlugInContainerLoadRequest:(NSURLRequest *)request inFrame:(NSString *)target;

@end

Expand Down Expand Up @@ -261,13 +262,7 @@ - (void)func:(NSSet *)touches withEvent:(UIEvent *)event { \
foo(touchesCancelled, kCancel_ANPTouchAction)

- (void)goToURL:(NSURL *)URL inFrame:(NSString *)frameName {
WebFrame *myframe = [[arguments objectForKey:@"WebPlugInContainerKey"] webFrame];
WebFrame *frame = [myframe findFrameNamed:frameName];
if(!frame) {
// It really should open a new window
frame = myframe;
}
[frame loadRequest:[NSURLRequest requestWithURL:URL]];
[[arguments objectForKey:@"WebPlugInContainerKey"] webPlugInContainerLoadRequest: [NSURLRequest requestWithURL:URL] inFrame: frameName];
}

- (UIImage *)scaleImage:(UIImage *) image maxWidth:(float) maxWidth maxHeight:(float) maxHeight
Expand Down
1 change: 0 additions & 1 deletion food/anp.cpp
Expand Up @@ -624,7 +624,6 @@ void window_impl_clearVisibleRects(NPP instance) {
*/
void window_impl_showKeyboard(NPP instance, bool value) {
notice("%s", __func__);
_abort();
}
/** Called when a plugin wishes to enter into full screen mode. The plugin's
Java class (set using kSetPluginStubJavaClassName_ANPSetValue) will be
Expand Down

0 comments on commit d162171

Please sign in to comment.