~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to libcore/asobj/TextSnapshot_as.cpp

  • Committer: Package Import Robot
  • Author(s): Micah Gersten
  • Date: 2012-03-04 03:19:06 UTC
  • mfrom: (1.1.18) (3.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120304031906-p6q5rnb0xhgpof7o
Tags: 0.8.10-3ubuntu1
* Merge from Debian testing (FFe: LP: #940876), remaining changes:
  - Use mozilla-flashplugin as the alternative for now
  - Change xulrunner-dev build dep to firefox-dev
* Drop the plugin API porting patch, this has been fixed upstream
  - drop debian/patches*
* Drop the following change as we want Adobe's player to take priority
  if it's installed
  - Set alternative priority to 50 so that it matches Adobe Flash's priority

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// TextSnapshot_as.cpp:  ActionScript "TextSnapshot" class, for Gnash.
2
2
//
3
 
//   Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
 
3
//   Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
4
4
//
5
5
// This program is free software; you can redistribute it and/or modify
6
6
// it under the terms of the GNU General Public License as published by
518
518
 
519
519
    if (fn.nargs != 3) {
520
520
        IF_VERBOSE_ASCODING_ERRORS(
521
 
            log_aserror("TextSnapshot.findText() requires 3 arguments");
 
521
            log_aserror(_("TextSnapshot.findText() requires 3 arguments"));
522
522
        );
523
523
        return as_value();
524
524
    }
542
542
 
543
543
    if (fn.nargs) {
544
544
        IF_VERBOSE_ASCODING_ERRORS(
545
 
            log_aserror("TextSnapshot.getCount() takes no arguments");
 
545
            log_aserror(_("TextSnapshot.getCount() takes no arguments"));
546
546
        );
547
547
        return as_value();
548
548
    }
598
598
    if (fn.nargs < 2 || fn.nargs > 3)
599
599
    {
600
600
        IF_VERBOSE_ASCODING_ERRORS(
601
 
            log_aserror("TextSnapshot.getText requires exactly 2 arguments");
 
601
            log_aserror(_("TextSnapshot.getText requires exactly 2 arguments"));
602
602
        );
603
603
        return as_value();
604
604
    }
621
621
 
622
622
    if (!ts->valid()) return as_value();
623
623
 
624
 
    log_unimpl (__FUNCTION__);
 
624
    log_unimpl(__FUNCTION__);
625
625
    return as_value();
626
626
}
627
627
 
633
633
    TextSnapshot_as* ts = ensure<ThisIsNative<TextSnapshot_as> >(fn);
634
634
    UNUSED(ts);
635
635
 
636
 
    log_unimpl (__FUNCTION__);
 
636
    log_unimpl(__FUNCTION__);
637
637
    return as_value();
638
638
}
639
639